Documentation
¶
Index ¶
- Constants
- func Delete(ctx context.ServiceContext, client *clients.GQLClient, options *DeleteOptions) error
- func Get(ctx context.ServiceContext, client *clients.GQLClient, options *GetOptions) (*commons.Secret, error)
- func Set(ctx context.ServiceContext, client *clients.GQLClient, options *SetOptions) (*commons.Secret, error)
- type DeleteOptions
- type GetOptions
- type SetOptions
Constants ¶
View Source
const ( QUERY_LATEST_ALL = `` /* 151-byte string literal not displayed */ QUERY_LATEST_BY_KEY = `` /* 170-byte string literal not displayed */ QUERY_BY_VERSION_BY_KEY = `` /* 185-byte string literal not displayed */ QUERY_BY_VERSION_LATEST = `` /* 148-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(ctx context.ServiceContext, client *clients.GQLClient, options *DeleteOptions) error
func Get ¶
func Get(ctx context.ServiceContext, client *clients.GQLClient, options *GetOptions) (*commons.Secret, error)
func Set ¶
func Set(ctx context.ServiceContext, client *clients.GQLClient, options *SetOptions) (*commons.Secret, error)
Types ¶
type DeleteOptions ¶
type GetOptions ¶
type GetOptions struct { Key string `json:"key"` EnvID string `json:"env_id"` Version *int `json:"version,omitempty"` }
func (*GetOptions) NewRequest ¶
func (o *GetOptions) NewRequest() *graphql.Request
Returns the appropriate GraphQL query to use based on available options.
Click to show internal directories.
Click to hide internal directories.