Documentation
¶
Index ¶
- type CreateNamespaceOutput
- type ExternalCredentials
- type ListNamespacesOutput
- type Namespace
- func (o Namespace) MarshalJSON() ([]byte, error)
- func (o *Namespace) SetDescription(v *string) *Namespace
- func (o *Namespace) SetExternalCredentials(v *[]*ExternalCredentials) *Namespace
- func (o *Namespace) SetID(v *string) *Namespace
- func (o *Namespace) SetName(v *string) *Namespace
- func (o *Namespace) SetPolicy(v *Policy) *Namespace
- type Policy
- type ReadNamespaceOutput
- type Service
- type ServiceOp
- func (s *ServiceOp) CreateNamespace(ctx context.Context, input *Namespace) (*CreateNamespaceOutput, error)
- func (s *ServiceOp) DeleteNamespace(ctx context.Context, namespaceId string) (*commons.EmptyResponse, error)
- func (s *ServiceOp) ListNamespaces(ctx context.Context) (*ListNamespacesOutput, error)
- func (s *ServiceOp) ReadNamespace(ctx context.Context, namespaceId string) (*ReadNamespaceOutput, error)
- func (s *ServiceOp) UpdateNamespace(ctx context.Context, namespaceId string, input *Namespace) (*UpdateNamespaceOutput, error)
- type TtlConfig
- type TtlDefinition
- type UpdateNamespaceOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateNamespaceOutput ¶
type CreateNamespaceOutput struct {
Namespace *Namespace `json:"namespace,omitempty"`
}
type ExternalCredentials ¶
type ExternalCredentials struct {
Type *string `json:"type,omitempty"`
ExternalCredentialsId *string `json:"externalCredentialsId,omitempty"`
// contains filtered or unexported fields
}
func (ExternalCredentials) MarshalJSON ¶
func (o ExternalCredentials) MarshalJSON() ([]byte, error)
func (*ExternalCredentials) SetExternalCredentialsId ¶
func (o *ExternalCredentials) SetExternalCredentialsId(v *string) *ExternalCredentials
func (*ExternalCredentials) SetType ¶
func (o *ExternalCredentials) SetType(v *string) *ExternalCredentials
type ListNamespacesOutput ¶
type ListNamespacesOutput struct {
Namespaces []*Namespace `json:"namespaces,omitempty"`
}
type Namespace ¶
type Namespace struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
ExternalCredentials *[]*ExternalCredentials `json:"externalCredentials,omitempty"`
Policy *Policy `json:"policy,omitempty"`
// contains filtered or unexported fields
}
func (Namespace) MarshalJSON ¶
func (*Namespace) SetDescription ¶
func (*Namespace) SetExternalCredentials ¶
func (o *Namespace) SetExternalCredentials(v *[]*ExternalCredentials) *Namespace
type Policy ¶
type Policy struct {
TtlConfig *TtlConfig `json:"ttlConfig,omitempty"`
// contains filtered or unexported fields
}
func (Policy) MarshalJSON ¶
func (*Policy) SetTtlConfig ¶
type ReadNamespaceOutput ¶
type ReadNamespaceOutput struct {
Namespace *Namespace `json:"namespace,omitempty"`
}
type Service ¶
type Service interface {
ListNamespaces(context.Context) (*ListNamespacesOutput, error)
CreateNamespace(context.Context, *Namespace) (*CreateNamespaceOutput, error)
ReadNamespace(context.Context, string) (*ReadNamespaceOutput, error)
UpdateNamespace(context.Context, string, *Namespace) (*UpdateNamespaceOutput, error)
DeleteNamespace(context.Context, string) (*commons.EmptyResponse, error)
}
Service provides the API operation methods for making requests to endpoints of the ControlMonkey API. See this package's package overview docs for details on the service.
type ServiceOp ¶
func (*ServiceOp) CreateNamespace ¶
func (*ServiceOp) DeleteNamespace ¶
func (*ServiceOp) ListNamespaces ¶
func (s *ServiceOp) ListNamespaces(ctx context.Context) (*ListNamespacesOutput, error)
func (*ServiceOp) ReadNamespace ¶
func (*ServiceOp) UpdateNamespace ¶
type TtlConfig ¶
type TtlConfig struct {
MaxTtl *TtlDefinition `json:"maxTtl,omitempty"`
DefaultTtl *TtlDefinition `json:"defaultTtl,omitempty"`
// contains filtered or unexported fields
}
func (*TtlConfig) SetDefaultTtl ¶
func (o *TtlConfig) SetDefaultTtl(v *TtlDefinition) *TtlConfig
func (*TtlConfig) SetMaxTtl ¶
func (o *TtlConfig) SetMaxTtl(v *TtlDefinition) *TtlConfig
type TtlDefinition ¶
type TtlDefinition struct {
Type *string `json:"type,omitempty"`
Value *int `json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*TtlDefinition) SetType ¶
func (o *TtlDefinition) SetType(v *string) *TtlDefinition
func (*TtlDefinition) SetValue ¶
func (o *TtlDefinition) SetValue(v *int) *TtlDefinition
type UpdateNamespaceOutput ¶
type UpdateNamespaceOutput struct {
Namespace *Namespace `json:"namespace,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.