Documentation ¶
Overview ¶
Package uservalidator contains code used by the user-validator
Index ¶
- type GithubOrgsGithuborg_v1GithubOrg_v1
- type GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1
- func (v *GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1) GetField() string
- func (v *GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1) GetFormat() string
- func (v *GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1) GetPath() string
- func (v *GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1) GetVersion() int
- type GithubOrgsResponse
- type UsersResponse
- type UsersUsers_v1User_v1
- func (v *UsersUsers_v1User_v1) GetGithub_username() string
- func (v *UsersUsers_v1User_v1) GetName() string
- func (v *UsersUsers_v1User_v1) GetOrg_username() string
- func (v *UsersUsers_v1User_v1) GetPagerduty_username() string
- func (v *UsersUsers_v1User_v1) GetPath() string
- func (v *UsersUsers_v1User_v1) GetPublic_gpg_key() string
- func (v *UsersUsers_v1User_v1) GetSlack_username() string
- type ValidateUser
- type ValidateUserConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubOrgsGithuborg_v1GithubOrg_v1 ¶
type GithubOrgsGithuborg_v1GithubOrg_v1 struct { Name string `json:"name"` Token GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1 `json:"token"` Default bool `json:"default"` }
GithubOrgsGithuborg_v1GithubOrg_v1 includes the requested fields of the GraphQL type GithubOrg_v1.
func (*GithubOrgsGithuborg_v1GithubOrg_v1) GetDefault ¶
func (v *GithubOrgsGithuborg_v1GithubOrg_v1) GetDefault() bool
GetDefault returns GithubOrgsGithuborg_v1GithubOrg_v1.Default, and is useful for accessing the field via an interface.
func (*GithubOrgsGithuborg_v1GithubOrg_v1) GetName ¶
func (v *GithubOrgsGithuborg_v1GithubOrg_v1) GetName() string
GetName returns GithubOrgsGithuborg_v1GithubOrg_v1.Name, and is useful for accessing the field via an interface.
func (*GithubOrgsGithuborg_v1GithubOrg_v1) GetToken ¶
func (v *GithubOrgsGithuborg_v1GithubOrg_v1) GetToken() GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1
GetToken returns GithubOrgsGithuborg_v1GithubOrg_v1.Token, and is useful for accessing the field via an interface.
type GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1 ¶
type GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1 struct { Path string `json:"path"` Field string `json:"field"` Version int `json:"version"` Format string `json:"format"` }
GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1 includes the requested fields of the GraphQL type VaultSecret_v1.
func (*GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1) GetField ¶
func (v *GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1) GetField() string
GetField returns GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1.Field, and is useful for accessing the field via an interface.
func (*GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1) GetFormat ¶
func (v *GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1) GetFormat() string
GetFormat returns GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1.Format, and is useful for accessing the field via an interface.
func (*GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1) GetPath ¶
func (v *GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1) GetPath() string
GetPath returns GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1.Path, and is useful for accessing the field via an interface.
func (*GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1) GetVersion ¶
func (v *GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1) GetVersion() int
GetVersion returns GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1.Version, and is useful for accessing the field via an interface.
type GithubOrgsResponse ¶
type GithubOrgsResponse struct {
Githuborg_v1 []GithubOrgsGithuborg_v1GithubOrg_v1 `json:"githuborg_v1"`
}
GithubOrgsResponse is returned by GithubOrgs on success.
func GithubOrgs ¶
func GithubOrgs( ctx context.Context, ) (*GithubOrgsResponse, error)
func (*GithubOrgsResponse) GetGithuborg_v1 ¶
func (v *GithubOrgsResponse) GetGithuborg_v1() []GithubOrgsGithuborg_v1GithubOrg_v1
GetGithuborg_v1 returns GithubOrgsResponse.Githuborg_v1, and is useful for accessing the field via an interface.
type UsersResponse ¶
type UsersResponse struct {
Users_v1 []UsersUsers_v1User_v1 `json:"users_v1"`
}
UsersResponse is returned by Users on success.
func (*UsersResponse) GetUsers_v1 ¶
func (v *UsersResponse) GetUsers_v1() []UsersUsers_v1User_v1
GetUsers_v1 returns UsersResponse.Users_v1, and is useful for accessing the field via an interface.
type UsersUsers_v1User_v1 ¶
type UsersUsers_v1User_v1 struct { Path string `json:"path"` Name string `json:"name"` Org_username string `json:"org_username"` Github_username string `json:"github_username"` Slack_username string `json:"slack_username"` Pagerduty_username string `json:"pagerduty_username"` Public_gpg_key string `json:"public_gpg_key"` }
UsersUsers_v1User_v1 includes the requested fields of the GraphQL type User_v1.
func (*UsersUsers_v1User_v1) GetGithub_username ¶
func (v *UsersUsers_v1User_v1) GetGithub_username() string
GetGithub_username returns UsersUsers_v1User_v1.Github_username, and is useful for accessing the field via an interface.
func (*UsersUsers_v1User_v1) GetName ¶
func (v *UsersUsers_v1User_v1) GetName() string
GetName returns UsersUsers_v1User_v1.Name, and is useful for accessing the field via an interface.
func (*UsersUsers_v1User_v1) GetOrg_username ¶
func (v *UsersUsers_v1User_v1) GetOrg_username() string
GetOrg_username returns UsersUsers_v1User_v1.Org_username, and is useful for accessing the field via an interface.
func (*UsersUsers_v1User_v1) GetPagerduty_username ¶
func (v *UsersUsers_v1User_v1) GetPagerduty_username() string
GetPagerduty_username returns UsersUsers_v1User_v1.Pagerduty_username, and is useful for accessing the field via an interface.
func (*UsersUsers_v1User_v1) GetPath ¶
func (v *UsersUsers_v1User_v1) GetPath() string
GetPath returns UsersUsers_v1User_v1.Path, and is useful for accessing the field via an interface.
func (*UsersUsers_v1User_v1) GetPublic_gpg_key ¶
func (v *UsersUsers_v1User_v1) GetPublic_gpg_key() string
GetPublic_gpg_key returns UsersUsers_v1User_v1.Public_gpg_key, and is useful for accessing the field via an interface.
func (*UsersUsers_v1User_v1) GetSlack_username ¶
func (v *UsersUsers_v1User_v1) GetSlack_username() string
GetSlack_username returns UsersUsers_v1User_v1.Slack_username, and is useful for accessing the field via an interface.
type ValidateUser ¶
type ValidateUser struct { AuthenticatedGithubClient *github.AuthenticatedGithubClient Vc *vault.Client ValidateUserConfig *ValidateUserConfig // contains filtered or unexported fields }
ValidateUser is a Validationa s described in github.com/app-sre/go-qontract-reconcile/pkg/integration.go
func NewValidateUser ¶
func NewValidateUser() *ValidateUser
NewValidateUser Create a new ValidateUser integration struct
func (*ValidateUser) Setup ¶
func (i *ValidateUser) Setup(ctx context.Context) error
Setup runs setup for user validator
func (*ValidateUser) Validate ¶
func (i *ValidateUser) Validate(ctx context.Context) ([]reconcile.ValidationError, error)
Validate run user validation
type ValidateUserConfig ¶
ValidateUserConfig is used to unmarshal yaml configuration for the user validator