Documentation
¶
Overview ¶
Package github provides a GitHub provider.
Index ¶
Constants ¶
View Source
const Name = "github"
Name of the provider.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GitHub ¶
type GitHub struct {
*provider.Provider `json:"-" validate:"required"`
Owner string `json:"owner" validate:"required"`
Repo string `json:"repo" validate:"required"`
Token string `json:"-" validate:"required"`
// contains filtered or unexported fields
}
GitHub provider definition.
func (*GitHub) GetRepository ¶
func (v *GitHub) GetRepository(ctx context.Context) (*Repository, error)
GetRepository retrieves the repository information.
type PublicKeyResponse ¶
PublicKeyResponse is the response from the GitHub API.
type Repository ¶
Repository is the repository information.
type SecretInformation ¶
type SecretInformation struct {
MountPath string `json:"-" validate:"required"`
SecretPath string `json:"-" validate:"required"`
}
SecretInformation is the information about a secret, where to retrieve it.
type SecretRequest ¶
type SecretRequest struct {
EncryptedValue string `json:"encrypted_value"`
KeyID string `json:"key_id"`
}
SecretRequest is the request to store a new secret.
type SecretsResponse ¶ added in v1.2.3
type SecretsResponse struct {
TotalCount int `json:"total_count"`
Secrets []SecretsResponseSecret `json:"secrets"`
}
SecretsResponse is the response from listing secrets.
type SecretsResponseSecret ¶ added in v1.2.3
type SecretsResponseSecret struct {
Name string `json:"name"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
SecretsResponseSecret is the secret information from the GitHub API.
type VariableRequest ¶ added in v1.2.3
VariableRequest is the request to store a new secret.
Click to show internal directories.
Click to hide internal directories.