Documentation ¶
Index ¶
- Variables
- func Delete(ctx context.Context, teamSlug slug.Slug, environment, name string) error
- func NewLoaderContext(ctx context.Context, clientCreator ClientCreator, environments []string, ...) context.Context
- type AddSecretValueInput
- type AddSecretValuePayload
- type ClientCreator
- type CreateSecretInput
- type CreateSecretPayload
- type DeleteSecretInput
- type DeleteSecretPayload
- type RemoveSecretValueInput
- type RemoveSecretValuePayload
- type Secret
- func AddSecretValue(ctx context.Context, teamSlug slug.Slug, environment, secretName string, ...) (*Secret, error)
- func Create(ctx context.Context, teamSlug slug.Slug, environment, name string) (*Secret, error)
- func Get(ctx context.Context, teamSlug slug.Slug, environment, name string) (*Secret, error)
- func GetByIdent(ctx context.Context, id ident.Ident) (*Secret, error)
- func RemoveSecretValue(ctx context.Context, teamSlug slug.Slug, ...) (*Secret, error)
- func UpdateSecretValue(ctx context.Context, teamSlug slug.Slug, environment, secretName string, ...) (*Secret, error)
- type SecretConnection
- type SecretCreatedActivityLogEntry
- type SecretDeletedActivityLogEntry
- type SecretEdge
- type SecretOrder
- type SecretOrderField
- type SecretValue
- type SecretValueAddedActivityLogEntry
- type SecretValueAddedActivityLogEntryData
- type SecretValueInput
- type SecretValueRemovedActivityLogEntry
- type SecretValueRemovedActivityLogEntryData
- type SecretValueUpdatedActivityLogEntry
- type SecretValueUpdatedActivityLogEntryData
- type SecretVariableInput
- type UpdateSecretInput
- type UpdateSecretPayload
- type UpdateSecretValueInput
- type UpdateSecretValuePayload
Constants ¶
This section is empty.
Variables ¶
View Source
var AllSecretOrderField = []SecretOrderField{ SecretOrderFieldName, SecretOrderFieldEnvironment, SecretOrderFieldLastModifiedAt, }
View Source
var ErrUnmanagedSecret = errUnmanagedSecret{}
View Source
var SortFilter = sortfilter.New[*Secret, SecretOrderField, struct{}](SecretOrderFieldName)
Functions ¶
func NewLoaderContext ¶
func NewLoaderContext(ctx context.Context, clientCreator ClientCreator, environments []string, log logrus.FieldLogger) context.Context
Types ¶
type AddSecretValueInput ¶
type AddSecretValueInput struct { Name string `json:"name"` Environment string `json:"environment"` Team slug.Slug `json:"team"` Value *SecretValueInput `json:"value"` }
type AddSecretValuePayload ¶
type AddSecretValuePayload struct {
Secret *Secret `json:"secret"`
}
type ClientCreator ¶
type ClientCreator func(ctx context.Context, environment string) (dynamic.NamespaceableResourceInterface, error)
func CreatorFromClients ¶
func CreatorFromClients(clients map[string]dynamic.Interface) ClientCreator
func CreatorFromConfig ¶
type CreateSecretInput ¶
type CreateSecretPayload ¶
type CreateSecretPayload struct {
Secret *Secret `json:"secret"`
}
type DeleteSecretInput ¶
type DeleteSecretPayload ¶
type DeleteSecretPayload struct {
SecretDeleted bool `json:"secretDeleted"`
}
type RemoveSecretValueInput ¶
type RemoveSecretValuePayload ¶
type RemoveSecretValuePayload struct {
Secret *Secret `json:"secret"`
}
type Secret ¶
type Secret struct { Name string `json:"name"` LastModifiedAt *time.Time `json:"lastModifiedAt"` ModifiedByUserEmail *string `json:"lastModifiedBy"` TeamSlug slug.Slug `json:"-"` EnvironmentName string `json:"-"` }
func AddSecretValue ¶
func RemoveSecretValue ¶
func UpdateSecretValue ¶
func (*Secret) DeepCopyObject ¶
func (*Secret) GetNamespace ¶
func (*Secret) GetObjectKind ¶
func (s *Secret) GetObjectKind() schema.ObjectKind
type SecretConnection ¶
type SecretConnection = pagination.Connection[*Secret]
func ListForTeam ¶
func ListForTeam(ctx context.Context, teamSlug slug.Slug, page *pagination.Pagination, orderBy *SecretOrder) (*SecretConnection, error)
func ListForWorkload ¶
func ListForWorkload(ctx context.Context, teamSlug slug.Slug, environmentName string, workload workload.Workload, page *pagination.Pagination) (*SecretConnection, error)
type SecretCreatedActivityLogEntry ¶
type SecretCreatedActivityLogEntry struct {
activitylog.GenericActivityLogEntry
}
type SecretDeletedActivityLogEntry ¶
type SecretDeletedActivityLogEntry struct {
activitylog.GenericActivityLogEntry
}
type SecretEdge ¶
type SecretEdge = pagination.Edge[*Secret]
type SecretOrder ¶
type SecretOrder struct { // The field to order items by. Field SecretOrderField `json:"field"` // The direction to order items by. Direction model.OrderDirection `json:"direction"` }
type SecretOrderField ¶
type SecretOrderField string
const ( // Order secrets by name. SecretOrderFieldName SecretOrderField = "NAME" // Order secrets by the name of the environment. SecretOrderFieldEnvironment SecretOrderField = "ENVIRONMENT" // Order secrets by the last time it was modified. SecretOrderFieldLastModifiedAt SecretOrderField = "LAST_MODIFIED_AT" )
func (SecretOrderField) IsValid ¶
func (e SecretOrderField) IsValid() bool
func (SecretOrderField) MarshalGQL ¶
func (e SecretOrderField) MarshalGQL(w io.Writer)
func (SecretOrderField) String ¶
func (e SecretOrderField) String() string
func (*SecretOrderField) UnmarshalGQL ¶
func (e *SecretOrderField) UnmarshalGQL(v interface{}) error
type SecretValue ¶
func GetSecretValues ¶
type SecretValueAddedActivityLogEntry ¶
type SecretValueAddedActivityLogEntry struct { activitylog.GenericActivityLogEntry Data *SecretValueAddedActivityLogEntryData }
type SecretValueAddedActivityLogEntryData ¶
type SecretValueAddedActivityLogEntryData struct {
ValueName string
}
type SecretValueInput ¶
type SecretValueRemovedActivityLogEntry ¶
type SecretValueRemovedActivityLogEntry struct { activitylog.GenericActivityLogEntry Data *SecretValueRemovedActivityLogEntryData }
type SecretValueRemovedActivityLogEntryData ¶
type SecretValueRemovedActivityLogEntryData struct {
ValueName string
}
type SecretValueUpdatedActivityLogEntry ¶
type SecretValueUpdatedActivityLogEntry struct { activitylog.GenericActivityLogEntry Data *SecretValueUpdatedActivityLogEntryData }
type SecretValueUpdatedActivityLogEntryData ¶
type SecretValueUpdatedActivityLogEntryData struct {
ValueName string
}
type SecretVariableInput ¶
type UpdateSecretInput ¶
type UpdateSecretInput struct { Name string `json:"name"` Environment string `json:"environment"` Team slug.Slug `json:"team"` Data []*SecretVariableInput `json:"data"` }
type UpdateSecretPayload ¶
type UpdateSecretPayload struct {
Secret *Secret `json:"secret"`
}
type UpdateSecretValueInput ¶
type UpdateSecretValueInput struct { Name string `json:"name"` Environment string `json:"environment"` Team slug.Slug `json:"team"` Value *SecretValueInput `json:"value"` }
type UpdateSecretValuePayload ¶
type UpdateSecretValuePayload struct {
Secret *Secret `json:"secret"`
}
Click to show internal directories.
Click to hide internal directories.