namespace

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 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 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 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"`
	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) SetRunnerConfig added in v1.3.0

func (o *Namespace) SetRunnerConfig(v *RunnerConfig) *Namespace

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) (*Namespace, error)
	ListNamespaces(context.Context, *string, *string) ([]*Namespace, error)
	ReadNamespace(context.Context, string) (*Namespace, error)
	UpdateNamespace(context.Context, string, *Namespace) (*Namespace, 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) (*Namespace, 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, namespaceId *string, namespaceName *string) ([]*Namespace, error)

func (*ServiceOp) ReadNamespace

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

func (*ServiceOp) UpdateNamespace

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

Jump to

Keyboard shortcuts

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