namespace

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

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 (o Namespace) MarshalJSON() ([]byte, error)

func (*Namespace) SetDescription

func (o *Namespace) SetDescription(v *string) *Namespace

func (*Namespace) SetExternalCredentials

func (o *Namespace) SetExternalCredentials(v *[]*ExternalCredentials) *Namespace

func (*Namespace) SetID

func (o *Namespace) SetID(v *string) *Namespace

func (*Namespace) SetName

func (o *Namespace) SetName(v *string) *Namespace

func (*Namespace) SetPolicy

func (o *Namespace) SetPolicy(v *Policy) *Namespace

type Policy

type Policy struct {
	TtlConfig *TtlConfig `json:"ttlConfig,omitempty"`
	// contains filtered or unexported fields
}

func (Policy) MarshalJSON

func (o Policy) MarshalJSON() ([]byte, error)

func (*Policy) SetTtlConfig

func (o *Policy) SetTtlConfig(v *TtlConfig) *Policy

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.

func New

func New(sess *session.Session, cfgs ...*controlmonkey.Config) Service

type ServiceOp

type ServiceOp struct {
	Client *client.Client
}

func (*ServiceOp) CreateNamespace

func (s *ServiceOp) CreateNamespace(ctx context.Context, input *Namespace) (*CreateNamespaceOutput, error)

func (*ServiceOp) DeleteNamespace

func (s *ServiceOp) DeleteNamespace(ctx context.Context, namespaceId string) (*commons.EmptyResponse, error)

func (*ServiceOp) ListNamespaces

func (s *ServiceOp) ListNamespaces(ctx context.Context) (*ListNamespacesOutput, error)

func (*ServiceOp) ReadNamespace

func (s *ServiceOp) ReadNamespace(ctx context.Context, namespaceId string) (*ReadNamespaceOutput, error)

func (*ServiceOp) UpdateNamespace

func (s *ServiceOp) UpdateNamespace(ctx context.Context, namespaceId string, input *Namespace) (*UpdateNamespaceOutput, error)

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL