alpha

package
v1.84.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Package alpha defines operations in the declarative SDK.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Package configcontroller provides functions to manage Config Controller resources.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2026 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const InstanceMaxPage = -1

Variables

View Source
var YAML_instance []byte

Functions

func DCLInstanceSchema added in v1.10.3

func DCLInstanceSchema() *dcl.Schema

func EncodeInstanceCreateRequest

func EncodeInstanceCreateRequest(m map[string]interface{}) map[string]interface{}

EncodeInstanceCreateRequest enables the Config Controller option (adds the `bundlesConfig` field) for all the create requests for a ConfigController Instance.

Types

type Client

type Client struct {
	Config *dcl.Config
}

The Client is the base struct of all operations. This will receive the Get, Delete, List, and Apply operations on all resources.

func NewClient

func NewClient(c *dcl.Config) *Client

NewClient creates a client that retries all operations a few times each.

func (*Client) ApplyInstance

func (c *Client) ApplyInstance(ctx context.Context, rawDesired *Instance, opts ...dcl.ApplyOption) (*Instance, error)

func (*Client) DeleteAllInstance

func (c *Client) DeleteAllInstance(ctx context.Context, project, location string, filter func(*Instance) bool) error

DeleteAllInstance deletes all resources that the filter functions returns true on.

func (*Client) DeleteInstance

func (c *Client) DeleteInstance(ctx context.Context, r *Instance) error

func (*Client) GetInstance

func (c *Client) GetInstance(ctx context.Context, r *Instance) (*Instance, error)

func (*Client) ListInstance

func (c *Client) ListInstance(ctx context.Context, project, location string) (*InstanceList, error)

func (*Client) ListInstanceWithMaxResults

func (c *Client) ListInstanceWithMaxResults(ctx context.Context, project, location string, pageSize int32) (*InstanceList, error)

type Instance

type Instance struct {
	Name               *string                   `json:"name"`
	Labels             map[string]string         `json:"labels"`
	BundlesConfig      *InstanceBundlesConfig    `json:"bundlesConfig"`
	UsePrivateEndpoint *bool                     `json:"usePrivateEndpoint"`
	GkeResourceLink    *string                   `json:"gkeResourceLink"`
	State              *InstanceStateEnum        `json:"state"`
	ManagementConfig   *InstanceManagementConfig `json:"managementConfig"`
	Project            *string                   `json:"project"`
	Location           *string                   `json:"location"`
}

func (*Instance) Describe

func (r *Instance) Describe() dcl.ServiceTypeVersion

Describe returns a simple description of this resource to ensure that automated tools can identify it.

func (*Instance) GetPolicy

func (r *Instance) GetPolicy(basePath string) (string, string, *bytes.Buffer, error)

func (*Instance) IAMPolicyVersion

func (r *Instance) IAMPolicyVersion() int

func (*Instance) ID

func (r *Instance) ID() (string, error)

func (*Instance) SetPolicyURL

func (r *Instance) SetPolicyURL(userBasePath string) string

func (*Instance) SetPolicyVerb

func (r *Instance) SetPolicyVerb() string

func (*Instance) String

func (r *Instance) String() string

type InstanceBundlesConfig

type InstanceBundlesConfig struct {
	ConfigControllerConfig *InstanceBundlesConfigConfigControllerConfig `json:"configControllerConfig"`
	// contains filtered or unexported fields
}
var EmptyInstanceBundlesConfig *InstanceBundlesConfig = &InstanceBundlesConfig{empty: true}

This object is used to assert a desired state where this InstanceBundlesConfig is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*InstanceBundlesConfig) Empty

func (r *InstanceBundlesConfig) Empty() bool

func (*InstanceBundlesConfig) HashCode

func (r *InstanceBundlesConfig) HashCode() string

func (*InstanceBundlesConfig) String

func (r *InstanceBundlesConfig) String() string

func (*InstanceBundlesConfig) UnmarshalJSON

func (r *InstanceBundlesConfig) UnmarshalJSON(data []byte) error

type InstanceBundlesConfigConfigControllerConfig

type InstanceBundlesConfigConfigControllerConfig struct {
	Enabled *bool `json:"enabled"`
	// contains filtered or unexported fields
}
var EmptyInstanceBundlesConfigConfigControllerConfig *InstanceBundlesConfigConfigControllerConfig = &InstanceBundlesConfigConfigControllerConfig{empty: true}

This object is used to assert a desired state where this InstanceBundlesConfigConfigControllerConfig is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*InstanceBundlesConfigConfigControllerConfig) Empty

func (*InstanceBundlesConfigConfigControllerConfig) HashCode

func (*InstanceBundlesConfigConfigControllerConfig) String

func (*InstanceBundlesConfigConfigControllerConfig) UnmarshalJSON

func (r *InstanceBundlesConfigConfigControllerConfig) UnmarshalJSON(data []byte) error

type InstanceList

type InstanceList struct {
	Items []*Instance
	// contains filtered or unexported fields
}

func (*InstanceList) HasNext

func (l *InstanceList) HasNext() bool

func (*InstanceList) Next

func (l *InstanceList) Next(ctx context.Context, c *Client) error

type InstanceManagementConfig

type InstanceManagementConfig struct {
	StandardManagementConfig *InstanceManagementConfigStandardManagementConfig `json:"standardManagementConfig"`
	FullManagementConfig     *InstanceManagementConfigFullManagementConfig     `json:"fullManagementConfig"`
	// contains filtered or unexported fields
}
var EmptyInstanceManagementConfig *InstanceManagementConfig = &InstanceManagementConfig{empty: true}

This object is used to assert a desired state where this InstanceManagementConfig is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*InstanceManagementConfig) Empty

func (r *InstanceManagementConfig) Empty() bool

func (*InstanceManagementConfig) HashCode

func (r *InstanceManagementConfig) HashCode() string

func (*InstanceManagementConfig) String

func (r *InstanceManagementConfig) String() string

func (*InstanceManagementConfig) UnmarshalJSON

func (r *InstanceManagementConfig) UnmarshalJSON(data []byte) error

type InstanceManagementConfigFullManagementConfig added in v1.26.2

type InstanceManagementConfigFullManagementConfig struct {
	Network             *string `json:"network"`
	MasterIPv4CidrBlock *string `json:"masterIPv4CidrBlock"`
	ManBlock            *string `json:"manBlock"`
	ClusterCidrBlock    *string `json:"clusterCidrBlock"`
	ServicesCidrBlock   *string `json:"servicesCidrBlock"`
	ClusterNamedRange   *string `json:"clusterNamedRange"`
	ServicesNamedRange  *string `json:"servicesNamedRange"`
	// contains filtered or unexported fields
}
var EmptyInstanceManagementConfigFullManagementConfig *InstanceManagementConfigFullManagementConfig = &InstanceManagementConfigFullManagementConfig{empty: true}

This object is used to assert a desired state where this InstanceManagementConfigFullManagementConfig is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*InstanceManagementConfigFullManagementConfig) Empty added in v1.26.2

func (*InstanceManagementConfigFullManagementConfig) HashCode added in v1.26.2

func (*InstanceManagementConfigFullManagementConfig) String added in v1.26.2

func (*InstanceManagementConfigFullManagementConfig) UnmarshalJSON added in v1.26.2

func (r *InstanceManagementConfigFullManagementConfig) UnmarshalJSON(data []byte) error

type InstanceManagementConfigStandardManagementConfig

type InstanceManagementConfigStandardManagementConfig struct {
	Network             *string `json:"network"`
	MasterIPv4CidrBlock *string `json:"masterIPv4CidrBlock"`
	ManBlock            *string `json:"manBlock"`
	ClusterCidrBlock    *string `json:"clusterCidrBlock"`
	ServicesCidrBlock   *string `json:"servicesCidrBlock"`
	ClusterNamedRange   *string `json:"clusterNamedRange"`
	ServicesNamedRange  *string `json:"servicesNamedRange"`
	// contains filtered or unexported fields
}
var EmptyInstanceManagementConfigStandardManagementConfig *InstanceManagementConfigStandardManagementConfig = &InstanceManagementConfigStandardManagementConfig{empty: true}

This object is used to assert a desired state where this InstanceManagementConfigStandardManagementConfig is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*InstanceManagementConfigStandardManagementConfig) Empty

func (*InstanceManagementConfigStandardManagementConfig) HashCode

func (*InstanceManagementConfigStandardManagementConfig) String

func (*InstanceManagementConfigStandardManagementConfig) UnmarshalJSON

type InstanceStateEnum

type InstanceStateEnum string

The enum InstanceStateEnum.

func InstanceStateEnumRef

func InstanceStateEnumRef(s string) *InstanceStateEnum

InstanceStateEnumRef returns a *InstanceStateEnum with the value of string s If the empty string is provided, nil is returned.

func (InstanceStateEnum) Validate

func (v InstanceStateEnum) Validate() error

Jump to

Keyboard shortcuts

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