namespace

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 11 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 DeploymentApprovalPolicy added in v1.3.0

type DeploymentApprovalPolicy struct {
	Rules            []*cross_models.DeploymentApprovalPolicyRule `json:"rules,omitempty"`
	OverrideBehavior *string                                      `json:"overrideBehavior,omitempty"` //commons.OverrideBehaviorTypes
	// contains filtered or unexported fields
}

func (DeploymentApprovalPolicy) MarshalJSON added in v1.3.0

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

func (*DeploymentApprovalPolicy) SetOverrideBehavior added in v1.3.0

func (o *DeploymentApprovalPolicy) SetOverrideBehavior(v *string) *DeploymentApprovalPolicy

func (*DeploymentApprovalPolicy) SetRules added in v1.3.0

type ExternalCredentials

type ExternalCredentials struct {
	Type                  *string `json:"type,omitempty"` //commons.ExternalCredentialTypes
	ExternalCredentialsId *string `json:"externalCredentialsId,omitempty"`
	AwsProfileName        *string `json:"awsProfileName,omitempty"`
	// contains filtered or unexported fields
}

func (ExternalCredentials) MarshalJSON

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

func (*ExternalCredentials) SetAwsProfileName added in v1.3.0

func (o *ExternalCredentials) SetAwsProfileName(v *string) *ExternalCredentials

func (*ExternalCredentials) SetExternalCredentialsId

func (o *ExternalCredentials) SetExternalCredentialsId(v *string) *ExternalCredentials

func (*ExternalCredentials) SetType

type IacConfig added in v1.3.0

type IacConfig struct {
	TerraformVersion  *string `json:"terraformVersion,omitempty"`
	TerragruntVersion *string `json:"terragruntVersion,omitempty"`
	OpentofuVersion   *string `json:"opentofuVersion,omitempty"`
	// contains filtered or unexported fields
}

func (IacConfig) MarshalJSON added in v1.3.0

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

func (*IacConfig) SetOpentofuVersion added in v1.4.0

func (o *IacConfig) SetOpentofuVersion(v *string) *IacConfig

func (*IacConfig) SetTerraformVersion added in v1.3.0

func (o *IacConfig) SetTerraformVersion(v *string) *IacConfig

func (*IacConfig) SetTerragruntVersion added in v1.3.0

func (o *IacConfig) SetTerragruntVersion(v *string) *IacConfig

type ListNamespacesOutput

type ListNamespacesOutput struct {
	Namespaces []*Namespace `json:"namespaces,omitempty"`
}

type Namespace

type Namespace struct {
	ID                       *string                   `json:"id,omitempty"` // read-only
	Name                     *string                   `json:"name,omitempty"`
	Description              *string                   `json:"description,omitempty"`
	ExternalCredentials      []*ExternalCredentials    `json:"externalCredentials,omitempty"`
	Policy                   *Policy                   `json:"policy,omitempty"`
	IacConfig                *IacConfig                `json:"iacConfig,omitempty"`
	RunnerConfig             *RunnerConfig             `json:"runnerConfig,omitempty"`
	DeploymentApprovalPolicy *DeploymentApprovalPolicy `json:"deploymentApprovalPolicy,omitempty"`
	// contains filtered or unexported fields
}

func (Namespace) MarshalJSON

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

func (*Namespace) SetDeploymentApprovalPolicy added in v1.3.0

func (o *Namespace) SetDeploymentApprovalPolicy(v *DeploymentApprovalPolicy) *Namespace

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) SetIacConfig added in v1.3.0

func (o *Namespace) SetIacConfig(v *IacConfig) *Namespace

func (*Namespace) SetName

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

func (*Namespace) SetPolicy

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

func (*Namespace) SetRunnerConfig added in v1.3.0

func (o *Namespace) SetRunnerConfig(v *RunnerConfig) *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 RunnerConfig added in v1.3.0

type RunnerConfig struct {
	Mode          *string   `json:"mode,omitempty"` //commons.RunnerConfigModeTypes
	Groups        []*string `json:"groups,omitempty"`
	IsOverridable *bool     `json:"isOverridable,omitempty"`
	// contains filtered or unexported fields
}

func (RunnerConfig) MarshalJSON added in v1.3.0

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

func (*RunnerConfig) SetGroups added in v1.3.0

func (o *RunnerConfig) SetGroups(v []*string) *RunnerConfig

func (*RunnerConfig) SetIsOverridable added in v1.3.0

func (o *RunnerConfig) SetIsOverridable(v *bool) *RunnerConfig

func (*RunnerConfig) SetMode added in v1.3.0

func (o *RunnerConfig) SetMode(v *string) *RunnerConfig

type Service

type Service interface {
	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) 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"` //commons.TtlTypes
	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