uservalidator

package
v0.0.0-...-c2b5c71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package uservalidator contains code used by the user-validator

Index

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

GetName returns GithubOrgsGithuborg_v1GithubOrg_v1.Name, and is useful for accessing the field via an interface.

func (*GithubOrgsGithuborg_v1GithubOrg_v1) GetToken

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

GetField returns GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1.Field, and is useful for accessing the field via an interface.

func (*GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1) GetFormat

GetFormat returns GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1.Format, and is useful for accessing the field via an interface.

func (*GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1) GetPath

GetPath returns GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1.Path, and is useful for accessing the field via an interface.

func (*GithubOrgsGithuborg_v1GithubOrg_v1TokenVaultSecret_v1) GetVersion

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

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 Users

func Users(
	ctx context.Context,
) (*UsersResponse, error)

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

Validate run user validation

type ValidateUserConfig

type ValidateUserConfig struct {
	Concurrency  int
	InvalidUsers string
}

ValidateUserConfig is used to unmarshal yaml configuration for the user validator

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL