Documentation
¶
Overview ¶
Code generated by "make api"; DO NOT EDIT.
Code generated by "make api"; DO NOT EDIT.
Code generated by "make api"; DO NOT EDIT.
Code generated by "make api"; DO NOT EDIT.
Index ¶
- type AuthMethod
- type AuthMethodCreateResult
- type AuthMethodDeleteResult
- type AuthMethodListResult
- type AuthMethodReadResult
- type AuthMethodUpdateResult
- type AuthenticateResult
- type Client
- func (c *Client) ApiClient() *api.Client
- func (c *Client) Authenticate(ctx context.Context, authMethodId, command string, ...) (*AuthenticateResult, error)
- func (c *Client) ChangeState(ctx context.Context, authMethodId string, version uint32, state string, ...) (*AuthMethodUpdateResult, error)
- func (c *Client) Create(ctx context.Context, resourceType string, scopeId string, opt ...Option) (*AuthMethodCreateResult, error)
- func (c *Client) Delete(ctx context.Context, authMethodId string, opt ...Option) (*AuthMethodDeleteResult, error)
- func (c *Client) List(ctx context.Context, scopeId string, opt ...Option) (*AuthMethodListResult, error)
- func (c *Client) Read(ctx context.Context, authMethodId string, opt ...Option) (*AuthMethodReadResult, error)
- func (c *Client) Update(ctx context.Context, authMethodId string, version uint32, opt ...Option) (*AuthMethodUpdateResult, error)
- type OidcAuthMethodAttributes
- type OidcAuthMethodAuthenticateStartResponse
- type Option
- func DefaultAttributes() Option
- func DefaultDescription() Option
- func DefaultName() Option
- func DefaultOidcAuthMethodAllowedAudiences() Option
- func DefaultOidcAuthMethodApiUrlPrefix() Option
- func DefaultOidcAuthMethodClientId() Option
- func DefaultOidcAuthMethodClientSecret() Option
- func DefaultOidcAuthMethodDisableDiscoveredConfigValidation() Option
- func DefaultOidcAuthMethodDryRun() Option
- func DefaultOidcAuthMethodIdpCaCerts() Option
- func DefaultOidcAuthMethodIssuer() Option
- func DefaultOidcAuthMethodMaxAge() Option
- func DefaultOidcAuthMethodSigningAlgorithms() Option
- func DefaultPasswordAuthMethodMinLoginNameLength() Option
- func DefaultPasswordAuthMethodMinPasswordLength() Option
- func WithAttributes(inAttributes map[string]interface{}) Option
- func WithAutomaticVersioning(enable bool) Option
- func WithDescription(inDescription string) Option
- func WithFilter(filter string) Option
- func WithName(inName string) Option
- func WithOidcAuthMethodAllowedAudiences(inAllowedAudiences []string) Option
- func WithOidcAuthMethodApiUrlPrefix(inApiUrlPrefix string) Option
- func WithOidcAuthMethodClientId(inClientId string) Option
- func WithOidcAuthMethodClientSecret(inClientSecret string) Option
- func WithOidcAuthMethodDisableDiscoveredConfigValidation(inDisableDiscoveredConfigValidation bool) Option
- func WithOidcAuthMethodDryRun(inDryRun bool) Option
- func WithOidcAuthMethodIdpCaCerts(inIdpCaCerts []string) Option
- func WithOidcAuthMethodIssuer(inIssuer string) Option
- func WithOidcAuthMethodMaxAge(inMaxAge uint32) Option
- func WithOidcAuthMethodSigningAlgorithms(inSigningAlgorithms []string) Option
- func WithPasswordAuthMethodMinLoginNameLength(inMinLoginNameLength uint32) Option
- func WithPasswordAuthMethodMinPasswordLength(inMinPasswordLength uint32) Option
- func WithRecursive(recurse bool) Option
- func WithSkipCurlOutput(skip bool) Option
- type PasswordAuthMethodAttributes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMethod ¶
type AuthMethod struct {
Id string `json:"id,omitempty"`
ScopeId string `json:"scope_id,omitempty"`
Scope *scopes.ScopeInfo `json:"scope,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
CreatedTime time.Time `json:"created_time,omitempty"`
UpdatedTime time.Time `json:"updated_time,omitempty"`
Version uint32 `json:"version,omitempty"`
Type string `json:"type,omitempty"`
Attributes map[string]interface{} `json:"attributes,omitempty"`
IsPrimary bool `json:"is_primary,omitempty"`
AuthorizedActions []string `json:"authorized_actions,omitempty"`
AuthorizedCollectionActions map[string][]string `json:"authorized_collection_actions,omitempty"`
// contains filtered or unexported fields
}
type AuthMethodCreateResult ¶
type AuthMethodCreateResult = AuthMethodReadResult
type AuthMethodDeleteResult ¶
type AuthMethodDeleteResult struct {
// contains filtered or unexported fields
}
func (AuthMethodDeleteResult) GetResponse ¶ added in v0.0.7
func (n AuthMethodDeleteResult) GetResponse() *api.Response
type AuthMethodListResult ¶
type AuthMethodListResult struct {
Items []*AuthMethod
// contains filtered or unexported fields
}
func (AuthMethodListResult) GetItems ¶
func (n AuthMethodListResult) GetItems() interface{}
func (AuthMethodListResult) GetResponse ¶ added in v0.0.7
func (n AuthMethodListResult) GetResponse() *api.Response
type AuthMethodReadResult ¶
type AuthMethodReadResult struct {
Item *AuthMethod
// contains filtered or unexported fields
}
func (AuthMethodReadResult) GetItem ¶
func (n AuthMethodReadResult) GetItem() interface{}
func (AuthMethodReadResult) GetResponse ¶ added in v0.0.7
func (n AuthMethodReadResult) GetResponse() *api.Response
type AuthMethodUpdateResult ¶
type AuthMethodUpdateResult = AuthMethodReadResult
type AuthenticateResult ¶ added in v0.0.9
type AuthenticateResult struct {
Command string `json:"-"`
Attributes map[string]interface{} `json:"-"`
// contains filtered or unexported fields
}
func (AuthenticateResult) GetRawAttributes ¶ added in v0.0.9
func (n AuthenticateResult) GetRawAttributes() json.RawMessage
func (AuthenticateResult) GetResponse ¶ added in v0.0.9
func (n AuthenticateResult) GetResponse() *api.Response
func (*AuthenticateResult) MarshalJSON ¶ added in v0.0.9
func (a *AuthenticateResult) MarshalJSON() ([]byte, error)
func (*AuthenticateResult) UnmarshalJSON ¶ added in v0.0.9
func (a *AuthenticateResult) UnmarshalJSON(inBytes []byte) error
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client for this collection
func NewClient ¶
Creates a new client for this collection. The submitted API client is cloned; modifications to it after generating this client will not have effect. If you need to make changes to the underlying API client, use ApiClient() to access it.
func (*Client) Authenticate ¶
func (c *Client) Authenticate(ctx context.Context, authMethodId, command string, attributes map[string]interface{}, opt ...Option) (*AuthenticateResult, error)
Authenticate is a generic authenticate API call that returns a generic result.
func (*Client) ChangeState ¶ added in v0.0.9
type OidcAuthMethodAttributes ¶ added in v0.0.9
type OidcAuthMethodAttributes struct {
State string `json:"state,omitempty"`
Issuer string `json:"issuer,omitempty"`
ClientId string `json:"client_id,omitempty"`
ClientSecret string `json:"client_secret,omitempty"`
ClientSecretHmac string `json:"client_secret_hmac,omitempty"`
MaxAge uint32 `json:"max_age,omitempty"`
SigningAlgorithms []string `json:"signing_algorithms,omitempty"`
ApiUrlPrefix string `json:"api_url_prefix,omitempty"`
CallbackUrl string `json:"callback_url,omitempty"`
IdpCaCerts []string `json:"idp_ca_certs,omitempty"`
AllowedAudiences []string `json:"allowed_audiences,omitempty"`
DisableDiscoveredConfigValidation bool `json:"disable_discovered_config_validation,omitempty"`
DryRun bool `json:"dry_run,omitempty"`
}
type OidcAuthMethodAuthenticateStartResponse ¶ added in v0.0.9
type Option ¶
type Option func(*options)
Option is a func that sets optional attributes for a call. This does not need to be used directly, but instead option arguments are built from the functions in this package. WithX options set a value to that given in the argument; DefaultX options indicate that the value should be set to its default. When an API call is made options are processed in ther order they appear in the function call, so for a given argument X, a succession of WithX or DefaultX calls will result in the last call taking effect.
func DefaultAttributes ¶
func DefaultAttributes() Option
func DefaultDescription ¶
func DefaultDescription() Option
func DefaultName ¶
func DefaultName() Option
func DefaultOidcAuthMethodAllowedAudiences ¶ added in v0.0.9
func DefaultOidcAuthMethodAllowedAudiences() Option
func DefaultOidcAuthMethodApiUrlPrefix ¶ added in v0.0.9
func DefaultOidcAuthMethodApiUrlPrefix() Option
func DefaultOidcAuthMethodClientId ¶ added in v0.0.9
func DefaultOidcAuthMethodClientId() Option
func DefaultOidcAuthMethodClientSecret ¶ added in v0.0.9
func DefaultOidcAuthMethodClientSecret() Option
func DefaultOidcAuthMethodDisableDiscoveredConfigValidation ¶ added in v0.0.9
func DefaultOidcAuthMethodDisableDiscoveredConfigValidation() Option
func DefaultOidcAuthMethodDryRun ¶ added in v0.0.9
func DefaultOidcAuthMethodDryRun() Option
func DefaultOidcAuthMethodIdpCaCerts ¶ added in v0.0.9
func DefaultOidcAuthMethodIdpCaCerts() Option
func DefaultOidcAuthMethodIssuer ¶ added in v0.0.9
func DefaultOidcAuthMethodIssuer() Option
func DefaultOidcAuthMethodMaxAge ¶ added in v0.0.9
func DefaultOidcAuthMethodMaxAge() Option
func DefaultOidcAuthMethodSigningAlgorithms ¶ added in v0.0.9
func DefaultOidcAuthMethodSigningAlgorithms() Option
func DefaultPasswordAuthMethodMinLoginNameLength ¶
func DefaultPasswordAuthMethodMinLoginNameLength() Option
func DefaultPasswordAuthMethodMinPasswordLength ¶
func DefaultPasswordAuthMethodMinPasswordLength() Option
func WithAttributes ¶
func WithAutomaticVersioning ¶
If set, and if the version is zero during an update, the API will perform a fetch to get the current version of the resource and populate it during the update call. This is convenient but opens up the possibility for subtle order-of-modification issues, so use carefully.
func WithDescription ¶
func WithFilter ¶ added in v0.0.6
WithFilter tells the API to filter the items returned using the provided filter term. The filter should be in a format supported by hashicorp/go-bexpr.
func WithOidcAuthMethodAllowedAudiences ¶ added in v0.0.9
func WithOidcAuthMethodApiUrlPrefix ¶ added in v0.0.9
func WithOidcAuthMethodClientId ¶ added in v0.0.9
func WithOidcAuthMethodClientSecret ¶ added in v0.0.9
func WithOidcAuthMethodDisableDiscoveredConfigValidation ¶ added in v0.0.9
func WithOidcAuthMethodDryRun ¶ added in v0.0.9
func WithOidcAuthMethodIdpCaCerts ¶ added in v0.0.9
func WithOidcAuthMethodIssuer ¶ added in v0.0.9
func WithOidcAuthMethodMaxAge ¶ added in v0.0.9
func WithOidcAuthMethodSigningAlgorithms ¶ added in v0.0.9
func WithRecursive ¶ added in v0.0.4
WithRecursive tells the API to use recursion for listing operations on this resource
func WithSkipCurlOutput ¶ added in v0.0.4
WithSkipCurlOutput tells the API to not use the current call for cURL output. Useful for when we need to look up versions.