Documentation
¶
Index ¶
- func CreateOrgDependabotSecretData(secret data.ImportedSecret, keyID string, encryptedValue string) *data.CreateOrgDepSecret
- func CreateOrgSecretData(secret data.ImportedSecret, keyID string, encryptedValue string) *data.CreateOrgSecret
- func CreateOrgSourceVariableData(variable data.Variable) *data.CreateVariableAll
- func CreateOrgVariableData(variable data.ImportedVariable) *data.CreateOrgVariable
- func CreateRepoSecretData(keyID string, encryptedValue string) *data.CreateRepoSecret
- func CreateRepoVariableData(variable data.ImportedVariable) *data.CreateRepoVariable
- func GetScopedSourceOrgActionVariables(owner string, secret string, g *sourceAPIGetter) ([]byte, error)
- func GetSourceOrganizationVariables(owner string, g *sourceAPIGetter) ([]byte, error)
- func NewSourceAPIGetter(restClient api.RESTClient) *sourceAPIGetter
- type APIGetter
- func (g *APIGetter) CreateOrgActionSecret(owner string, secret string, data io.Reader) error
- func (g *APIGetter) CreateOrgCodespacesSecret(owner string, secret string, data io.Reader) error
- func (g *APIGetter) CreateOrgDependabotSecret(owner string, secret string, data io.Reader) error
- func (g *APIGetter) CreateOrganizationVariable(owner string, data io.Reader) error
- func (g *APIGetter) CreateRepoActionSecret(owner string, repo string, secret string, data io.Reader) error
- func (g *APIGetter) CreateRepoCodespacesSecret(owner string, repo string, secret string, data io.Reader) error
- func (g *APIGetter) CreateRepoDependabotSecret(owner string, repo string, secret string, data io.Reader) error
- func (g *APIGetter) CreateRepoVariable(owner string, repo string, data io.Reader) error
- func (g *APIGetter) CreateSecretsList(filedata [][]string) []data.ImportedSecret
- func (g *APIGetter) CreateVariableList(filedata [][]string) []data.ImportedVariable
- func (g *APIGetter) EncryptSecret(publickey string, secret string) (string, error)
- func (g *APIGetter) GetOrgActionPublicKey(owner string) ([]byte, error)
- func (g *APIGetter) GetOrgActionSecrets(owner string) ([]byte, error)
- func (g *APIGetter) GetOrgActionVariables(owner string) ([]byte, error)
- func (g *APIGetter) GetOrgCodespacesPublicKey(owner string) ([]byte, error)
- func (g *APIGetter) GetOrgCodespacesSecrets(owner string) ([]byte, error)
- func (g *APIGetter) GetOrgDependabotPublicKey(owner string) ([]byte, error)
- func (g *APIGetter) GetOrgDependabotSecrets(owner string) ([]byte, error)
- func (g *APIGetter) GetRepo(owner string, name string) (*data.RepoSingleQuery, error)
- func (g *APIGetter) GetRepoActionPublicKey(owner string, repo string) ([]byte, error)
- func (g *APIGetter) GetRepoActionSecrets(owner string, repo string) ([]byte, error)
- func (g *APIGetter) GetRepoActionVariables(owner string, repo string) ([]byte, error)
- func (g *APIGetter) GetRepoCodespacesPublicKey(owner string, repo string) ([]byte, error)
- func (g *APIGetter) GetRepoCodespacesSecrets(owner string, repo string) ([]byte, error)
- func (g *APIGetter) GetRepoDependabotPublicKey(owner string, repo string) ([]byte, error)
- func (g *APIGetter) GetRepoDependabotSecrets(owner string, repo string) ([]byte, error)
- func (g *APIGetter) GetReposList(owner string, endCursor *string) (*data.ReposQuery, error)
- func (g *APIGetter) GetScopedOrgActionSecrets(owner string, secret string) ([]byte, error)
- func (g *APIGetter) GetScopedOrgActionVariables(owner string, secret string) ([]byte, error)
- func (g *APIGetter) GetScopedOrgCodespacesSecrets(owner string, secret string) ([]byte, error)
- func (g *APIGetter) GetScopedOrgDependabotSecrets(owner string, secret string) ([]byte, error)
- type Getter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrgDependabotSecretData ¶
func CreateOrgDependabotSecretData(secret data.ImportedSecret, keyID string, encryptedValue string) *data.CreateOrgDepSecret
Separate function to address that the Dependabot Org Secret API is an array of strings instead of an array of integers
func CreateOrgSecretData ¶
func CreateOrgSecretData(secret data.ImportedSecret, keyID string, encryptedValue string) *data.CreateOrgSecret
func CreateOrgSourceVariableData ¶
func CreateOrgSourceVariableData(variable data.Variable) *data.CreateVariableAll
func CreateOrgVariableData ¶
func CreateOrgVariableData(variable data.ImportedVariable) *data.CreateOrgVariable
func CreateRepoSecretData ¶
func CreateRepoSecretData(keyID string, encryptedValue string) *data.CreateRepoSecret
func CreateRepoVariableData ¶
func CreateRepoVariableData(variable data.ImportedVariable) *data.CreateRepoVariable
func NewSourceAPIGetter ¶
func NewSourceAPIGetter(restClient api.RESTClient) *sourceAPIGetter
Types ¶
type APIGetter ¶
type APIGetter struct {
// contains filtered or unexported fields
}
func NewAPIGetter ¶
func NewAPIGetter(gqlClient api.GQLClient, restClient api.RESTClient) *APIGetter
func (*APIGetter) CreateOrgActionSecret ¶
func (*APIGetter) CreateOrgCodespacesSecret ¶
func (*APIGetter) CreateOrgDependabotSecret ¶
func (*APIGetter) CreateOrganizationVariable ¶
func (*APIGetter) CreateRepoActionSecret ¶
func (*APIGetter) CreateRepoCodespacesSecret ¶
func (*APIGetter) CreateRepoDependabotSecret ¶
func (*APIGetter) CreateRepoVariable ¶
func (*APIGetter) CreateSecretsList ¶
func (g *APIGetter) CreateSecretsList(filedata [][]string) []data.ImportedSecret
func (*APIGetter) CreateVariableList ¶
func (g *APIGetter) CreateVariableList(filedata [][]string) []data.ImportedVariable
func (*APIGetter) EncryptSecret ¶
func (*APIGetter) GetOrgActionPublicKey ¶
func (*APIGetter) GetOrgActionSecrets ¶
func (*APIGetter) GetOrgActionVariables ¶
func (*APIGetter) GetOrgCodespacesPublicKey ¶
func (*APIGetter) GetOrgCodespacesSecrets ¶
func (*APIGetter) GetOrgDependabotPublicKey ¶
func (*APIGetter) GetOrgDependabotSecrets ¶
func (*APIGetter) GetRepoActionPublicKey ¶
func (*APIGetter) GetRepoActionSecrets ¶
func (*APIGetter) GetRepoActionVariables ¶
func (*APIGetter) GetRepoCodespacesPublicKey ¶
func (*APIGetter) GetRepoCodespacesSecrets ¶
func (*APIGetter) GetRepoDependabotPublicKey ¶
func (*APIGetter) GetRepoDependabotSecrets ¶
func (*APIGetter) GetReposList ¶
func (*APIGetter) GetScopedOrgActionSecrets ¶
func (*APIGetter) GetScopedOrgActionVariables ¶
func (*APIGetter) GetScopedOrgCodespacesSecrets ¶
type Getter ¶
type Getter interface { GetReposList(owner string, endCursor *string) ([]data.ReposQuery, error) GetRepo(owner string, name string) ([]data.RepoSingleQuery, error) GetOrgActionSecrets(owner string) ([]byte, error) GetRepoActionSecrets(owner string, repo string) ([]byte, error) GetScopedOrgActionSecrets(owner string, secret string) ([]byte, error) GetOrgDependabotSecrets(owner string) ([]byte, error) GetRepoDependabotSecrets(owner string, repo string) ([]byte, error) GetScopedOrgDependabotSecrets(owner string, secret string) ([]byte, error) GetOrgCodespacesSecrets(owner string) ([]byte, error) GetRepoCodespacesSecrets(owner string, repo string) ([]byte, error) GetScopedOrgCodespacesSecrets(owner string, secret string) ([]byte, error) CreateSecretsList(data [][]string) []data.ImportedSecret GetOrgActionPublicKey(owner string) ([]byte, error) GetRepoActionPublicKey(owner string, repo string) ([]byte, error) GetOrgCodespacesPublicKey(owner string) ([]byte, error) GetRepoCodespacesPublicKey(owner string, repo string) ([]byte, error) GetOrgDependabotPublicKey(owner string) ([]byte, error) GetRepoDependabotPublicKey(owner string, repo string) ([]byte, error) EncryptSecret(publickey string, secret string) (string, error) CreateOrgActionSecret(owner string, secret string, data io.Reader) error CreateRepoActionSecret(owner string, repo string, secret string, data io.Reader) error CreateOrgCodespacesSecret(owner string, secret string, data io.Reader) error CreateRepoCodespacesSecret(owner string, repo string, secret string, data io.Reader) error CreateOrgDependabotSecret(owner string, secret string, data io.Reader) error CreateRepoDependabotSecret(owner string, repo string, secret string, data io.Reader) error GetOrgActionVariables(owner string) ([]byte, error) GetRepoActionVariables(owner string, repo string) ([]byte, error) GetScopedOrgActionVariables(owner string, secret string) ([]byte, error) }
Click to show internal directories.
Click to hide internal directories.