Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: PasswordResetTokens #179

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
2 changes: 2 additions & 0 deletions v3/pkg/apis/hobbyfarm.io/v1/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ func addKnownTypes(scheme *runtime.Scheme) error {
&ScheduledEventList{},
&DynamicBindConfiguration{},
&DynamicBindConfigurationList{},
&PasswordResetToken{},
&PasswordResetTokenList{},
&Progress{},
&ProgressList{},
&Setting{},
Expand Down
24 changes: 24 additions & 0 deletions v3/pkg/apis/hobbyfarm.io/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,3 +556,27 @@ type ScopeList struct {

Items []Scope `json:"items"`
}

// +genclient
// +genclient:noStatus
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

type PasswordResetToken struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec PasswordResetTokenSpec `json:"spec"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

type PasswordResetTokenList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []PasswordResetToken `json:"items"`
}

type PasswordResetTokenSpec struct {
UserId string `json:"user"`
Timestamp string `json:"timestamp"`
Duration string `json:"duration"`
}
76 changes: 76 additions & 0 deletions v3/pkg/apis/hobbyfarm.io/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading