luci: go.chromium.org/luci/gce/api/config/v1 Index | Files

package config

import "go.chromium.org/luci/gce/api/config/v1"

Index

Package Files

block.go config.pb.go configserver_dec.go generate.go kinds.go pb.discovery.go service.pb.go vm.go vms.go

Variables

var AccessConfigType_name = map[int32]string{
    0: "ONE_TO_ONE_NAT",
}
var AccessConfigType_value = map[string]int32{
    "ONE_TO_ONE_NAT": 0,
}

func FileDescriptorSet Uses

func FileDescriptorSet() *descriptor.FileDescriptorSet

FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.

Will not return nil.

Do NOT modify the returned descriptor.

func RegisterConfigServer Uses

func RegisterConfigServer(s prpc.Registrar, srv ConfigServer)

type AccessConfig Uses

type AccessConfig struct {
    // The type of config this is.
    Type                 AccessConfigType `protobuf:"varint,1,opt,name=type,proto3,enum=config.AccessConfigType" json:"type,omitempty"`
    XXX_NoUnkeyedLiteral struct{}         `json:"-"`
    XXX_unrecognized     []byte           `json:"-"`
    XXX_sizecache        int32            `json:"-"`
}

A description of a network access config.

func (*AccessConfig) Descriptor Uses

func (*AccessConfig) Descriptor() ([]byte, []int)

func (*AccessConfig) GetType Uses

func (m *AccessConfig) GetType() AccessConfigType

func (*AccessConfig) ProtoMessage Uses

func (*AccessConfig) ProtoMessage()

func (*AccessConfig) Reset Uses

func (m *AccessConfig) Reset()

func (*AccessConfig) String Uses

func (m *AccessConfig) String() string

func (*AccessConfig) XXX_DiscardUnknown Uses

func (m *AccessConfig) XXX_DiscardUnknown()

func (*AccessConfig) XXX_Marshal Uses

func (m *AccessConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccessConfig) XXX_Merge Uses

func (m *AccessConfig) XXX_Merge(src proto.Message)

func (*AccessConfig) XXX_Size Uses

func (m *AccessConfig) XXX_Size() int

func (*AccessConfig) XXX_Unmarshal Uses

func (m *AccessConfig) XXX_Unmarshal(b []byte) error

type AccessConfigType Uses

type AccessConfigType int32

A network access config type. GCE's default and only value is 1:1 NAT.

const (
    // 1:1 network address translation.
    AccessConfigType_ONE_TO_ONE_NAT AccessConfigType = 0
)

func (AccessConfigType) EnumDescriptor Uses

func (AccessConfigType) EnumDescriptor() ([]byte, []int)

func (AccessConfigType) String Uses

func (x AccessConfigType) String() string

type Block Uses

type Block struct {
    // The amount of VMs in this block.
    Amount int32 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
    // The attributes of VMs in this block.
    // Attributes here override attributes in the kind.
    Attributes *VM `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"`
    // The name of a kind of VM.
    Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
    // The prefix to use when naming VMs in this block.
    Prefix string `protobuf:"bytes,4,opt,name=prefix,proto3" json:"prefix,omitempty"`
    // The Swarming server VMs in this block should connect to.
    Swarming             string   `protobuf:"bytes,5,opt,name=swarming,proto3" json:"swarming,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A block of VMs.

func (*Block) Descriptor Uses

func (*Block) Descriptor() ([]byte, []int)

func (*Block) FromProperty Uses

func (b *Block) FromProperty(p datastore.Property) error

FromProperty implements datastore.PropertyConverter.

func (*Block) GetAmount Uses

func (m *Block) GetAmount() int32

func (*Block) GetAttributes Uses

func (m *Block) GetAttributes() *VM

func (*Block) GetKind Uses

func (m *Block) GetKind() string

func (*Block) GetPrefix Uses

func (m *Block) GetPrefix() string

func (*Block) GetSwarming Uses

func (m *Block) GetSwarming() string

func (*Block) ProtoMessage Uses

func (*Block) ProtoMessage()

func (*Block) Reset Uses

func (m *Block) Reset()

func (*Block) String Uses

func (m *Block) String() string

func (*Block) ToProperty Uses

func (b *Block) ToProperty() (datastore.Property, error)

ToProperty implements datastore.PropertyConverter.

func (*Block) Validate Uses

func (b *Block) Validate(c *validation.Context, kinds stringset.Set)

Validate validates this VMs block given the allowable kinds the block may reference.

func (*Block) XXX_DiscardUnknown Uses

func (m *Block) XXX_DiscardUnknown()

func (*Block) XXX_Marshal Uses

func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Block) XXX_Merge Uses

func (m *Block) XXX_Merge(src proto.Message)

func (*Block) XXX_Size Uses

func (m *Block) XXX_Size() int

func (*Block) XXX_Unmarshal Uses

func (m *Block) XXX_Unmarshal(b []byte) error

type ConfigClient Uses

type ConfigClient interface {
    // DeleteVMs deletes an existing VMs block.
    // Internal API.
    DeleteVMs(ctx context.Context, in *DeleteVMsRequest, opts ...grpc.CallOption) (*empty.Empty, error)
    // EnsureVMs ensures a VMs block exists.
    // Creates a new VMs block or updates an existing one as necessary.
    // Internal API.
    EnsureVMs(ctx context.Context, in *EnsureVMsRequest, opts ...grpc.CallOption) (*Block, error)
    // GetVMs returns a configured VMs block.
    GetVMs(ctx context.Context, in *GetVMsRequest, opts ...grpc.CallOption) (*Block, error)
}

ConfigClient is the client API for Config service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewConfigClient Uses

func NewConfigClient(cc *grpc.ClientConn) ConfigClient

func NewConfigPRPCClient Uses

func NewConfigPRPCClient(client *prpc.Client) ConfigClient

type ConfigServer Uses

type ConfigServer interface {
    // DeleteVMs deletes an existing VMs block.
    // Internal API.
    DeleteVMs(context.Context, *DeleteVMsRequest) (*empty.Empty, error)
    // EnsureVMs ensures a VMs block exists.
    // Creates a new VMs block or updates an existing one as necessary.
    // Internal API.
    EnsureVMs(context.Context, *EnsureVMsRequest) (*Block, error)
    // GetVMs returns a configured VMs block.
    GetVMs(context.Context, *GetVMsRequest) (*Block, error)
}

ConfigServer is the server API for Config service.

type DecoratedConfig Uses

type DecoratedConfig struct {
    // Service is the service to decorate.
    Service ConfigServer
    // Prelude is called for each method before forwarding the call to Service.
    // If Prelude returns an error, then the call is skipped and the error is
    // processed via the Postlude (if one is defined), or it is returned directly.
    Prelude func(c context.Context, methodName string, req proto.Message) (context.Context, error)
    // Postlude is called for each method after Service has processed the call, or
    // after the Prelude has returned an error. This takes the the Service's
    // response proto (which may be nil) and/or any error. The decorated
    // service will return the response (possibly mutated) and error that Postlude
    // returns.
    Postlude func(c context.Context, methodName string, rsp proto.Message, err error) error
}

func (*DecoratedConfig) DeleteVMs Uses

func (s *DecoratedConfig) DeleteVMs(c context.Context, req *DeleteVMsRequest) (rsp *empty.Empty, err error)

func (*DecoratedConfig) EnsureVMs Uses

func (s *DecoratedConfig) EnsureVMs(c context.Context, req *EnsureVMsRequest) (rsp *Block, err error)

func (*DecoratedConfig) GetVMs Uses

func (s *DecoratedConfig) GetVMs(c context.Context, req *GetVMsRequest) (rsp *Block, err error)

type DeleteVMsRequest Uses

type DeleteVMsRequest struct {
    // The id of the VMs block to delete.
    Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A request to delete a VMs block.

func (*DeleteVMsRequest) Descriptor Uses

func (*DeleteVMsRequest) Descriptor() ([]byte, []int)

func (*DeleteVMsRequest) GetId Uses

func (m *DeleteVMsRequest) GetId() string

func (*DeleteVMsRequest) ProtoMessage Uses

func (*DeleteVMsRequest) ProtoMessage()

func (*DeleteVMsRequest) Reset Uses

func (m *DeleteVMsRequest) Reset()

func (*DeleteVMsRequest) String Uses

func (m *DeleteVMsRequest) String() string

func (*DeleteVMsRequest) XXX_DiscardUnknown Uses

func (m *DeleteVMsRequest) XXX_DiscardUnknown()

func (*DeleteVMsRequest) XXX_Marshal Uses

func (m *DeleteVMsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteVMsRequest) XXX_Merge Uses

func (m *DeleteVMsRequest) XXX_Merge(src proto.Message)

func (*DeleteVMsRequest) XXX_Size Uses

func (m *DeleteVMsRequest) XXX_Size() int

func (*DeleteVMsRequest) XXX_Unmarshal Uses

func (m *DeleteVMsRequest) XXX_Unmarshal(b []byte) error

type Disk Uses

type Disk struct {
    // The name of an image to use to create this disk.
    // https://cloud.google.com/compute/docs/reference/rest/v1/images/list.
    Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
    // The size of this disk in GiB.
    Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
    // The name of a disk type to use for this disk.
    // https://cloud.google.com/compute/docs/reference/rest/v1/diskTypes/list.
    Type                 string   `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A description of a disk. https://cloud.google.com/compute/docs/reference/rest/v1/disks.

func (*Disk) Descriptor Uses

func (*Disk) Descriptor() ([]byte, []int)

func (*Disk) GetImage Uses

func (m *Disk) GetImage() string

func (*Disk) GetSize Uses

func (m *Disk) GetSize() int64

func (*Disk) GetType Uses

func (m *Disk) GetType() string

func (*Disk) ProtoMessage Uses

func (*Disk) ProtoMessage()

func (*Disk) Reset Uses

func (m *Disk) Reset()

func (*Disk) String Uses

func (m *Disk) String() string

func (*Disk) XXX_DiscardUnknown Uses

func (m *Disk) XXX_DiscardUnknown()

func (*Disk) XXX_Marshal Uses

func (m *Disk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Disk) XXX_Merge Uses

func (m *Disk) XXX_Merge(src proto.Message)

func (*Disk) XXX_Size Uses

func (m *Disk) XXX_Size() int

func (*Disk) XXX_Unmarshal Uses

func (m *Disk) XXX_Unmarshal(b []byte) error

type EnsureVMsRequest Uses

type EnsureVMsRequest struct {
    // The id of the VMs block to ensure.
    Id  string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    // The VMs block.
    Vms                  *Block   `protobuf:"bytes,2,opt,name=vms,proto3" json:"vms,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A request to create or update a VMs block.

func (*EnsureVMsRequest) Descriptor Uses

func (*EnsureVMsRequest) Descriptor() ([]byte, []int)

func (*EnsureVMsRequest) GetId Uses

func (m *EnsureVMsRequest) GetId() string

func (*EnsureVMsRequest) GetVms Uses

func (m *EnsureVMsRequest) GetVms() *Block

func (*EnsureVMsRequest) ProtoMessage Uses

func (*EnsureVMsRequest) ProtoMessage()

func (*EnsureVMsRequest) Reset Uses

func (m *EnsureVMsRequest) Reset()

func (*EnsureVMsRequest) String Uses

func (m *EnsureVMsRequest) String() string

func (*EnsureVMsRequest) XXX_DiscardUnknown Uses

func (m *EnsureVMsRequest) XXX_DiscardUnknown()

func (*EnsureVMsRequest) XXX_Marshal Uses

func (m *EnsureVMsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnsureVMsRequest) XXX_Merge Uses

func (m *EnsureVMsRequest) XXX_Merge(src proto.Message)

func (*EnsureVMsRequest) XXX_Size Uses

func (m *EnsureVMsRequest) XXX_Size() int

func (*EnsureVMsRequest) XXX_Unmarshal Uses

func (m *EnsureVMsRequest) XXX_Unmarshal(b []byte) error

type GetVMsRequest Uses

type GetVMsRequest struct {
    // The id of the VMs block to get.
    Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A request to get a VMs block.

func (*GetVMsRequest) Descriptor Uses

func (*GetVMsRequest) Descriptor() ([]byte, []int)

func (*GetVMsRequest) GetId Uses

func (m *GetVMsRequest) GetId() string

func (*GetVMsRequest) ProtoMessage Uses

func (*GetVMsRequest) ProtoMessage()

func (*GetVMsRequest) Reset Uses

func (m *GetVMsRequest) Reset()

func (*GetVMsRequest) String Uses

func (m *GetVMsRequest) String() string

func (*GetVMsRequest) XXX_DiscardUnknown Uses

func (m *GetVMsRequest) XXX_DiscardUnknown()

func (*GetVMsRequest) XXX_Marshal Uses

func (m *GetVMsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetVMsRequest) XXX_Merge Uses

func (m *GetVMsRequest) XXX_Merge(src proto.Message)

func (*GetVMsRequest) XXX_Size Uses

func (m *GetVMsRequest) XXX_Size() int

func (*GetVMsRequest) XXX_Unmarshal Uses

func (m *GetVMsRequest) XXX_Unmarshal(b []byte) error

type Kind Uses

type Kind struct {
    // The attributes of VMs of this kind.
    Attributes *VM `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"`
    // The name of this kind of VM.
    Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A kind of VM.

func (*Kind) Descriptor Uses

func (*Kind) Descriptor() ([]byte, []int)

func (*Kind) GetAttributes Uses

func (m *Kind) GetAttributes() *VM

func (*Kind) GetName Uses

func (m *Kind) GetName() string

func (*Kind) ProtoMessage Uses

func (*Kind) ProtoMessage()

func (*Kind) Reset Uses

func (m *Kind) Reset()

func (*Kind) String Uses

func (m *Kind) String() string

func (*Kind) XXX_DiscardUnknown Uses

func (m *Kind) XXX_DiscardUnknown()

func (*Kind) XXX_Marshal Uses

func (m *Kind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Kind) XXX_Merge Uses

func (m *Kind) XXX_Merge(src proto.Message)

func (*Kind) XXX_Size Uses

func (m *Kind) XXX_Size() int

func (*Kind) XXX_Unmarshal Uses

func (m *Kind) XXX_Unmarshal(b []byte) error

type Kinds Uses

type Kinds struct {
    // Available kinds of VMs.
    Kind                 []*Kind  `protobuf:"bytes,1,rep,name=kind,proto3" json:"kind,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A kinds config.

func (*Kinds) Descriptor Uses

func (*Kinds) Descriptor() ([]byte, []int)

func (*Kinds) GetKind Uses

func (m *Kinds) GetKind() []*Kind

func (*Kinds) Map Uses

func (kinds *Kinds) Map() map[string]*Kind

Map returns a map of name to VM kind. For each name, only the last kind is included in the map. Use Validate to ensure names are unique.

func (*Kinds) Names Uses

func (kinds *Kinds) Names() []string

Names returns the names of VM kinds.

func (*Kinds) ProtoMessage Uses

func (*Kinds) ProtoMessage()

func (*Kinds) Reset Uses

func (m *Kinds) Reset()

func (*Kinds) String Uses

func (m *Kinds) String() string

func (*Kinds) Validate Uses

func (kinds *Kinds) Validate(c *validation.Context)

Validate validates VM kinds.

func (*Kinds) XXX_DiscardUnknown Uses

func (m *Kinds) XXX_DiscardUnknown()

func (*Kinds) XXX_Marshal Uses

func (m *Kinds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Kinds) XXX_Merge Uses

func (m *Kinds) XXX_Merge(src proto.Message)

func (*Kinds) XXX_Size Uses

func (m *Kinds) XXX_Size() int

func (*Kinds) XXX_Unmarshal Uses

func (m *Kinds) XXX_Unmarshal(b []byte) error

type Metadata Uses

type Metadata struct {
    // Types that are valid to be assigned to Metadata:
    //	*Metadata_FromText
    //	*Metadata_FromFile
    Metadata             isMetadata_Metadata `protobuf_oneof:"metadata"`
    XXX_NoUnkeyedLiteral struct{}            `json:"-"`
    XXX_unrecognized     []byte              `json:"-"`
    XXX_sizecache        int32               `json:"-"`
}

A description of instance metadata.

func (*Metadata) Descriptor Uses

func (*Metadata) Descriptor() ([]byte, []int)

func (*Metadata) GetFromFile Uses

func (m *Metadata) GetFromFile() string

func (*Metadata) GetFromText Uses

func (m *Metadata) GetFromText() string

func (*Metadata) GetMetadata Uses

func (m *Metadata) GetMetadata() isMetadata_Metadata

func (*Metadata) ProtoMessage Uses

func (*Metadata) ProtoMessage()

func (*Metadata) Reset Uses

func (m *Metadata) Reset()

func (*Metadata) String Uses

func (m *Metadata) String() string

func (*Metadata) XXX_DiscardUnknown Uses

func (m *Metadata) XXX_DiscardUnknown()

func (*Metadata) XXX_Marshal Uses

func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Metadata) XXX_Merge Uses

func (m *Metadata) XXX_Merge(src proto.Message)

func (*Metadata) XXX_OneofWrappers Uses

func (*Metadata) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Metadata) XXX_Size Uses

func (m *Metadata) XXX_Size() int

func (*Metadata) XXX_Unmarshal Uses

func (m *Metadata) XXX_Unmarshal(b []byte) error

type Metadata_FromFile Uses

type Metadata_FromFile struct {
    FromFile string `protobuf:"bytes,2,opt,name=from_file,json=fromFile,proto3,oneof"`
}

type Metadata_FromText Uses

type Metadata_FromText struct {
    FromText string `protobuf:"bytes,1,opt,name=from_text,json=fromText,proto3,oneof"`
}

type NetworkInterface Uses

type NetworkInterface struct {
    // The access configurations for this interface.
    // Required to enable external internet access.
    AccessConfig []*AccessConfig `protobuf:"bytes,1,rep,name=access_config,json=accessConfig,proto3" json:"access_config,omitempty"`
    // The name of a network to use for this interface.
    // https://cloud.google.com/compute/docs/reference/rest/v1/networks/list.
    Network              string   `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A description of a network interface.

func (*NetworkInterface) Descriptor Uses

func (*NetworkInterface) Descriptor() ([]byte, []int)

func (*NetworkInterface) GetAccessConfig Uses

func (m *NetworkInterface) GetAccessConfig() []*AccessConfig

func (*NetworkInterface) GetNetwork Uses

func (m *NetworkInterface) GetNetwork() string

func (*NetworkInterface) ProtoMessage Uses

func (*NetworkInterface) ProtoMessage()

func (*NetworkInterface) Reset Uses

func (m *NetworkInterface) Reset()

func (*NetworkInterface) String Uses

func (m *NetworkInterface) String() string

func (*NetworkInterface) XXX_DiscardUnknown Uses

func (m *NetworkInterface) XXX_DiscardUnknown()

func (*NetworkInterface) XXX_Marshal Uses

func (m *NetworkInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NetworkInterface) XXX_Merge Uses

func (m *NetworkInterface) XXX_Merge(src proto.Message)

func (*NetworkInterface) XXX_Size Uses

func (m *NetworkInterface) XXX_Size() int

func (*NetworkInterface) XXX_Unmarshal Uses

func (m *NetworkInterface) XXX_Unmarshal(b []byte) error

type ServiceAccount Uses

type ServiceAccount struct {
    // The email address of this service account.
    Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
    // The scopes available for this service account.
    Scope                []string `protobuf:"bytes,2,rep,name=scope,proto3" json:"scope,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A description of a service account.

func (*ServiceAccount) Descriptor Uses

func (*ServiceAccount) Descriptor() ([]byte, []int)

func (*ServiceAccount) GetEmail Uses

func (m *ServiceAccount) GetEmail() string

func (*ServiceAccount) GetScope Uses

func (m *ServiceAccount) GetScope() []string

func (*ServiceAccount) ProtoMessage Uses

func (*ServiceAccount) ProtoMessage()

func (*ServiceAccount) Reset Uses

func (m *ServiceAccount) Reset()

func (*ServiceAccount) String Uses

func (m *ServiceAccount) String() string

func (*ServiceAccount) XXX_DiscardUnknown Uses

func (m *ServiceAccount) XXX_DiscardUnknown()

func (*ServiceAccount) XXX_Marshal Uses

func (m *ServiceAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServiceAccount) XXX_Merge Uses

func (m *ServiceAccount) XXX_Merge(src proto.Message)

func (*ServiceAccount) XXX_Size Uses

func (m *ServiceAccount) XXX_Size() int

func (*ServiceAccount) XXX_Unmarshal Uses

func (m *ServiceAccount) XXX_Unmarshal(b []byte) error

type VM Uses

type VM struct {
    // The disks to attach to this VM.
    Disk []*Disk `protobuf:"bytes,1,rep,name=disk,proto3" json:"disk,omitempty"`
    // The name of a machine type to use for this VM.
    // https://cloud.google.com/compute/docs/reference/rest/v1/machineTypes/list.
    MachineType string `protobuf:"bytes,2,opt,name=machine_type,json=machineType,proto3" json:"machine_type,omitempty"`
    // The metadata to attach to this VM.
    Metadata []*Metadata `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty"`
    // The network interfaces to configure for this VM.
    NetworkInterface []*NetworkInterface `protobuf:"bytes,4,rep,name=network_interface,json=networkInterface,proto3" json:"network_interface,omitempty"`
    // The name of a GCP project to create this VM in.
    Project string `protobuf:"bytes,5,opt,name=project,proto3" json:"project,omitempty"`
    // The service accounts to make available to this VM.
    ServiceAccount []*ServiceAccount `protobuf:"bytes,6,rep,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
    // The name of a zone to create this VM in.
    // https://cloud.google.com/compute/docs/reference/rest/v1/zones/list.
    Zone                 string   `protobuf:"bytes,7,opt,name=zone,proto3" json:"zone,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A description of a VM. https://cloud.google.com/compute/docs/reference/rest/v1/instances.

func (*VM) Descriptor Uses

func (*VM) Descriptor() ([]byte, []int)

func (*VM) FromProperty Uses

func (v *VM) FromProperty(p datastore.Property) error

FromProperty implements datastore.PropertyConverter.

func (*VM) GetDisk Uses

func (m *VM) GetDisk() []*Disk

func (*VM) GetMachineType Uses

func (m *VM) GetMachineType() string

func (*VM) GetMetadata Uses

func (m *VM) GetMetadata() []*Metadata

func (*VM) GetNetworkInterface Uses

func (m *VM) GetNetworkInterface() []*NetworkInterface

func (*VM) GetProject Uses

func (m *VM) GetProject() string

func (*VM) GetServiceAccount Uses

func (m *VM) GetServiceAccount() []*ServiceAccount

func (*VM) GetZone Uses

func (m *VM) GetZone() string

func (*VM) ProtoMessage Uses

func (*VM) ProtoMessage()

func (*VM) Reset Uses

func (m *VM) Reset()

func (*VM) String Uses

func (m *VM) String() string

func (*VM) ToProperty Uses

func (v *VM) ToProperty() (datastore.Property, error)

ToProperty implements datastore.PropertyConverter.

func (*VM) XXX_DiscardUnknown Uses

func (m *VM) XXX_DiscardUnknown()

func (*VM) XXX_Marshal Uses

func (m *VM) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VM) XXX_Merge Uses

func (m *VM) XXX_Merge(src proto.Message)

func (*VM) XXX_Size Uses

func (m *VM) XXX_Size() int

func (*VM) XXX_Unmarshal Uses

func (m *VM) XXX_Unmarshal(b []byte) error

type VMs Uses

type VMs struct {
    // A block of VMs.
    Vms                  []*Block `protobuf:"bytes,1,rep,name=vms,proto3" json:"vms,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A VMs config.

func (*VMs) Descriptor Uses

func (*VMs) Descriptor() ([]byte, []int)

func (*VMs) GetVms Uses

func (m *VMs) GetVms() []*Block

func (*VMs) ProtoMessage Uses

func (*VMs) ProtoMessage()

func (*VMs) Reset Uses

func (m *VMs) Reset()

func (*VMs) String Uses

func (m *VMs) String() string

func (*VMs) Validate Uses

func (vms *VMs) Validate(c *validation.Context, kinds stringset.Set)

Validate validates VMs blocks given the allowable kinds blocks may reference.

func (*VMs) XXX_DiscardUnknown Uses

func (m *VMs) XXX_DiscardUnknown()

func (*VMs) XXX_Marshal Uses

func (m *VMs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMs) XXX_Merge Uses

func (m *VMs) XXX_Merge(src proto.Message)

func (*VMs) XXX_Size Uses

func (m *VMs) XXX_Size() int

func (*VMs) XXX_Unmarshal Uses

func (m *VMs) XXX_Unmarshal(b []byte) error

Package config imports 13 packages (graph). Updated 2018-12-14. Refresh now. Tools for package owners.