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

package config

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

Package config contains VM config definitions.

Index

Package Files

amount.go config.go config.pb.go configs.go configurationserver_dec.go disk.go doc.go duration.go generate.go pb.discovery.go schedule.go service.pb.go timeofday.go timeperiod.go vm.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 RegisterConfigurationServer Uses

func RegisterConfigurationServer(s prpc.Registrar, srv ConfigurationServer)

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 Amount Uses

type Amount struct {
    // The default amount to use outside scheduled hours.
    Default int32 `protobuf:"varint,1,opt,name=default,proto3" json:"default,omitempty"`
    // The amount of VMs to have at a particular time.
    Change               []*Schedule `protobuf:"bytes,2,rep,name=change,proto3" json:"change,omitempty"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

An amount of VMs.

func (*Amount) Descriptor Uses

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

func (*Amount) GetAmount Uses

func (a *Amount) GetAmount(now time.Time) (int32, error)

GetAmount returns the amount to use at the given time. Returns the first matching amount, which should be the only match if this *Amount has been validated.

func (*Amount) GetChange Uses

func (m *Amount) GetChange() []*Schedule

func (*Amount) GetDefault Uses

func (m *Amount) GetDefault() int32

func (*Amount) ProtoMessage Uses

func (*Amount) ProtoMessage()

func (*Amount) Reset Uses

func (m *Amount) Reset()

func (*Amount) String Uses

func (m *Amount) String() string

func (*Amount) Validate Uses

func (a *Amount) Validate(c *validation.Context)

Validate validates this amount.

func (*Amount) XXX_DiscardUnknown Uses

func (m *Amount) XXX_DiscardUnknown()

func (*Amount) XXX_Marshal Uses

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

func (*Amount) XXX_Merge Uses

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

func (*Amount) XXX_Size Uses

func (m *Amount) XXX_Size() int

func (*Amount) XXX_Unmarshal Uses

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

type Config Uses

type Config struct {
    // The amount of these VMs.
    Amount *Amount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
    // The attributes of these VMs.
    Attributes *VM `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"`
    // The lifetime of these VMs.
    // At the end of their lifetime, each VM is deleted and replaced.
    Lifetime *TimePeriod `protobuf:"bytes,3,opt,name=lifetime,proto3" json:"lifetime,omitempty"`
    // The prefix to use when naming these VMs.
    Prefix string `protobuf:"bytes,4,opt,name=prefix,proto3" json:"prefix,omitempty"`
    // Should only be set by the server. The revision of this config.
    Revision string `protobuf:"bytes,5,opt,name=revision,proto3" json:"revision,omitempty"`
    // The hostname of the Swarming server these VMs should connect to.
    Swarming string `protobuf:"bytes,6,opt,name=swarming,proto3" json:"swarming,omitempty"`
    // The timeout of these VMs.
    // If no Swarming bot has connected by the timeout,
    // the VM is deleted and replaced.
    Timeout              *TimePeriod `protobuf:"bytes,7,opt,name=timeout,proto3" json:"timeout,omitempty"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

A config for one type of VM.

func (*Config) Descriptor Uses

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

func (*Config) FromProperty Uses

func (cfg *Config) FromProperty(p datastore.Property) error

FromProperty implements datastore.PropertyConverter.

func (*Config) GetAmount Uses

func (m *Config) GetAmount() *Amount

func (*Config) GetAttributes Uses

func (m *Config) GetAttributes() *VM

func (*Config) GetLifetime Uses

func (m *Config) GetLifetime() *TimePeriod

func (*Config) GetPrefix Uses

func (m *Config) GetPrefix() string

func (*Config) GetRevision Uses

func (m *Config) GetRevision() string

func (*Config) GetSwarming Uses

func (m *Config) GetSwarming() string

func (*Config) GetTimeout Uses

func (m *Config) GetTimeout() *TimePeriod

func (*Config) ProtoMessage Uses

func (*Config) ProtoMessage()

func (*Config) Reset Uses

func (m *Config) Reset()

func (*Config) String Uses

func (m *Config) String() string

func (*Config) ToProperty Uses

func (cfg *Config) ToProperty() (datastore.Property, error)

ToProperty implements datastore.PropertyConverter.

func (*Config) Validate Uses

func (cfg *Config) Validate(c *validation.Context)

Validate validates this config.

func (*Config) XXX_DiscardUnknown Uses

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal Uses

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

func (*Config) XXX_Merge Uses

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

func (*Config) XXX_Size Uses

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal Uses

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

type Configs Uses

type Configs struct {
    // The configs for different types of VMs.
    Vms                  []*Config `protobuf:"bytes,1,rep,name=vms,proto3" json:"vms,omitempty"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

A config for several types of VMs.

func (*Configs) Descriptor Uses

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

func (*Configs) GetVms Uses

func (m *Configs) GetVms() []*Config

func (*Configs) ProtoMessage Uses

func (*Configs) ProtoMessage()

func (*Configs) Reset Uses

func (m *Configs) Reset()

func (*Configs) String Uses

func (m *Configs) String() string

func (*Configs) Validate Uses

func (cfgs *Configs) Validate(c *validation.Context)

Validate validates these configs.

func (*Configs) XXX_DiscardUnknown Uses

func (m *Configs) XXX_DiscardUnknown()

func (*Configs) XXX_Marshal Uses

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

func (*Configs) XXX_Merge Uses

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

func (*Configs) XXX_Size Uses

func (m *Configs) XXX_Size() int

func (*Configs) XXX_Unmarshal Uses

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

type ConfigurationClient Uses

type ConfigurationClient interface {
    // Delete deletes a config.
    // Internal API.
    Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*empty.Empty, error)
    // Ensure ensures a config exists.
    // Creates a new config or updates an existing one as necessary.
    // Internal API.
    Ensure(ctx context.Context, in *EnsureRequest, opts ...grpc.CallOption) (*Config, error)
    // Get returns an existing config.
    Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Config, error)
    // List returns existing configs.
    List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
}

ConfigurationClient is the client API for Configuration service.

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

func NewConfigurationClient Uses

func NewConfigurationClient(cc *grpc.ClientConn) ConfigurationClient

func NewConfigurationPRPCClient Uses

func NewConfigurationPRPCClient(client *prpc.Client) ConfigurationClient

type ConfigurationServer Uses

type ConfigurationServer interface {
    // Delete deletes a config.
    // Internal API.
    Delete(context.Context, *DeleteRequest) (*empty.Empty, error)
    // Ensure ensures a config exists.
    // Creates a new config or updates an existing one as necessary.
    // Internal API.
    Ensure(context.Context, *EnsureRequest) (*Config, error)
    // Get returns an existing config.
    Get(context.Context, *GetRequest) (*Config, error)
    // List returns existing configs.
    List(context.Context, *ListRequest) (*ListResponse, error)
}

ConfigurationServer is the server API for Configuration service.

type DecoratedConfiguration Uses

type DecoratedConfiguration struct {
    // Service is the service to decorate.
    Service ConfigurationServer
    // 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 (*DecoratedConfiguration) Delete Uses

func (s *DecoratedConfiguration) Delete(c context.Context, req *DeleteRequest) (rsp *empty.Empty, err error)

func (*DecoratedConfiguration) Ensure Uses

func (s *DecoratedConfiguration) Ensure(c context.Context, req *EnsureRequest) (rsp *Config, err error)

func (*DecoratedConfiguration) Get Uses

func (s *DecoratedConfiguration) Get(c context.Context, req *GetRequest) (rsp *Config, err error)

func (*DecoratedConfiguration) List Uses

func (s *DecoratedConfiguration) List(c context.Context, req *ListRequest) (rsp *ListResponse, err error)

type DeleteRequest Uses

type DeleteRequest struct {
    // The id of the config 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 config.

func (*DeleteRequest) Descriptor Uses

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

func (*DeleteRequest) GetId Uses

func (m *DeleteRequest) GetId() string

func (*DeleteRequest) ProtoMessage Uses

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) Reset Uses

func (m *DeleteRequest) Reset()

func (*DeleteRequest) String Uses

func (m *DeleteRequest) String() string

func (*DeleteRequest) XXX_DiscardUnknown Uses

func (m *DeleteRequest) XXX_DiscardUnknown()

func (*DeleteRequest) XXX_Marshal Uses

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

func (*DeleteRequest) XXX_Merge Uses

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

func (*DeleteRequest) XXX_Size Uses

func (m *DeleteRequest) XXX_Size() int

func (*DeleteRequest) XXX_Unmarshal Uses

func (m *DeleteRequest) 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) GetImageBase Uses

func (d *Disk) GetImageBase() string

GetImageBase returns the base image name for this validated disk.

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) Validate Uses

func (d *Disk) Validate(c *validation.Context)

Validate validates this disk.

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 EnsureRequest Uses

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

A request to create or update a config.

func (*EnsureRequest) Descriptor Uses

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

func (*EnsureRequest) GetConfig Uses

func (m *EnsureRequest) GetConfig() *Config

func (*EnsureRequest) GetId Uses

func (m *EnsureRequest) GetId() string

func (*EnsureRequest) ProtoMessage Uses

func (*EnsureRequest) ProtoMessage()

func (*EnsureRequest) Reset Uses

func (m *EnsureRequest) Reset()

func (*EnsureRequest) String Uses

func (m *EnsureRequest) String() string

func (*EnsureRequest) XXX_DiscardUnknown Uses

func (m *EnsureRequest) XXX_DiscardUnknown()

func (*EnsureRequest) XXX_Marshal Uses

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

func (*EnsureRequest) XXX_Merge Uses

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

func (*EnsureRequest) XXX_Size Uses

func (m *EnsureRequest) XXX_Size() int

func (*EnsureRequest) XXX_Unmarshal Uses

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

type GetRequest Uses

type GetRequest struct {
    // The id of the config 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 an existing config.

func (*GetRequest) Descriptor Uses

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

func (*GetRequest) GetId Uses

func (m *GetRequest) GetId() string

func (*GetRequest) ProtoMessage Uses

func (*GetRequest) ProtoMessage()

func (*GetRequest) Reset Uses

func (m *GetRequest) Reset()

func (*GetRequest) String Uses

func (m *GetRequest) String() string

func (*GetRequest) XXX_DiscardUnknown Uses

func (m *GetRequest) XXX_DiscardUnknown()

func (*GetRequest) XXX_Marshal Uses

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

func (*GetRequest) XXX_Merge Uses

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

func (*GetRequest) XXX_Size Uses

func (m *GetRequest) XXX_Size() int

func (*GetRequest) XXX_Unmarshal Uses

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

type ListRequest Uses

type ListRequest struct {
    // The value of next_page_token received in a ListResponse. Used to get the
    // next page of configs. If empty, gets the first page.
    PageToken string `protobuf:"bytes,1,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
    // The maximum number of results to include in the response.
    PageSize             int32    `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A request to list existing configs.

func (*ListRequest) Descriptor Uses

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

func (*ListRequest) GetPageSize Uses

func (m *ListRequest) GetPageSize() int32

func (*ListRequest) GetPageToken Uses

func (m *ListRequest) GetPageToken() string

func (*ListRequest) ProtoMessage Uses

func (*ListRequest) ProtoMessage()

func (*ListRequest) Reset Uses

func (m *ListRequest) Reset()

func (*ListRequest) String Uses

func (m *ListRequest) String() string

func (*ListRequest) XXX_DiscardUnknown Uses

func (m *ListRequest) XXX_DiscardUnknown()

func (*ListRequest) XXX_Marshal Uses

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

func (*ListRequest) XXX_Merge Uses

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

func (*ListRequest) XXX_Size Uses

func (m *ListRequest) XXX_Size() int

func (*ListRequest) XXX_Unmarshal Uses

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

type ListResponse Uses

type ListResponse struct {
    // The configs.
    Configs []*Config `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"`
    // The value to use as the page_token in a ListRequest to get the next page of
    // configs. If empty, there are no more configs.
    NextPageToken        string   `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A response to a request to list configs.

func (*ListResponse) Descriptor Uses

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

func (*ListResponse) GetConfigs Uses

func (m *ListResponse) GetConfigs() []*Config

func (*ListResponse) GetNextPageToken Uses

func (m *ListResponse) GetNextPageToken() string

func (*ListResponse) ProtoMessage Uses

func (*ListResponse) ProtoMessage()

func (*ListResponse) Reset Uses

func (m *ListResponse) Reset()

func (*ListResponse) String Uses

func (m *ListResponse) String() string

func (*ListResponse) XXX_DiscardUnknown Uses

func (m *ListResponse) XXX_DiscardUnknown()

func (*ListResponse) XXX_Marshal Uses

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

func (*ListResponse) XXX_Merge Uses

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

func (*ListResponse) XXX_Size Uses

func (m *ListResponse) XXX_Size() int

func (*ListResponse) XXX_Unmarshal Uses

func (m *ListResponse) 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 Schedule Uses

type Schedule struct {
    // The amount of VMs.
    Amount int32 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
    // The length of time the amount is in effect.
    // With start, this creates a half-open interval.
    // During [start, start+length) the amount will apply.
    Length *TimePeriod `protobuf:"bytes,2,opt,name=length,proto3" json:"length,omitempty"`
    // The start times when this amount goes into effect.
    Start                *TimeOfDay `protobuf:"bytes,3,opt,name=start,proto3" json:"start,omitempty"`
    XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    XXX_unrecognized     []byte     `json:"-"`
    XXX_sizecache        int32      `json:"-"`
}

An amount of VMs for particular days of the week.

func (*Schedule) Descriptor Uses

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

func (*Schedule) GetAmount Uses

func (m *Schedule) GetAmount() int32

func (*Schedule) GetLength Uses

func (m *Schedule) GetLength() *TimePeriod

func (*Schedule) GetStart Uses

func (m *Schedule) GetStart() *TimeOfDay

func (*Schedule) ProtoMessage Uses

func (*Schedule) ProtoMessage()

func (*Schedule) Reset Uses

func (m *Schedule) Reset()

func (*Schedule) String Uses

func (m *Schedule) String() string

func (*Schedule) Validate Uses

func (s *Schedule) Validate(c *validation.Context)

Validate validates this schedule.

func (*Schedule) XXX_DiscardUnknown Uses

func (m *Schedule) XXX_DiscardUnknown()

func (*Schedule) XXX_Marshal Uses

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

func (*Schedule) XXX_Merge Uses

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

func (*Schedule) XXX_Size Uses

func (m *Schedule) XXX_Size() int

func (*Schedule) XXX_Unmarshal Uses

func (m *Schedule) 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 TimeOfDay Uses

type TimeOfDay struct {
    // The day of the week the time applies to.
    Day dayofweek.DayOfWeek `protobuf:"varint,1,opt,name=day,proto3,enum=google.type.DayOfWeek" json:"day,omitempty"`
    // The location the time should be interpreted in.
    // https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
    Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
    // The time in 24-hour <hour>:<minute>.
    Time                 string   `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A time of day.

func (*TimeOfDay) Descriptor Uses

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

func (*TimeOfDay) GetDay Uses

func (m *TimeOfDay) GetDay() dayofweek.DayOfWeek

func (*TimeOfDay) GetLocation Uses

func (m *TimeOfDay) GetLocation() string

func (*TimeOfDay) GetTime Uses

func (m *TimeOfDay) GetTime() string

func (*TimeOfDay) ProtoMessage Uses

func (*TimeOfDay) ProtoMessage()

func (*TimeOfDay) Reset Uses

func (m *TimeOfDay) Reset()

func (*TimeOfDay) String Uses

func (m *TimeOfDay) String() string

func (*TimeOfDay) Validate Uses

func (t *TimeOfDay) Validate(c *validation.Context)

Validate validates this time of day.

func (*TimeOfDay) XXX_DiscardUnknown Uses

func (m *TimeOfDay) XXX_DiscardUnknown()

func (*TimeOfDay) XXX_Marshal Uses

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

func (*TimeOfDay) XXX_Merge Uses

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

func (*TimeOfDay) XXX_Size Uses

func (m *TimeOfDay) XXX_Size() int

func (*TimeOfDay) XXX_Unmarshal Uses

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

type TimePeriod Uses

type TimePeriod struct {
    // Types that are valid to be assigned to Time:
    //	*TimePeriod_Duration
    //	*TimePeriod_Seconds
    Time                 isTimePeriod_Time `protobuf_oneof:"time"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

A length of time.

func (*TimePeriod) Descriptor Uses

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

func (*TimePeriod) GetDuration Uses

func (m *TimePeriod) GetDuration() string

func (*TimePeriod) GetSeconds Uses

func (m *TimePeriod) GetSeconds() int64

func (*TimePeriod) GetTime Uses

func (m *TimePeriod) GetTime() isTimePeriod_Time

func (*TimePeriod) Normalize Uses

func (t *TimePeriod) Normalize() error

Normalize ensures this time period is in seconds. Parses and converts duration to seconds if necessary.

func (*TimePeriod) ProtoMessage Uses

func (*TimePeriod) ProtoMessage()

func (*TimePeriod) Reset Uses

func (m *TimePeriod) Reset()

func (*TimePeriod) String Uses

func (m *TimePeriod) String() string

func (*TimePeriod) ToSeconds Uses

func (t *TimePeriod) ToSeconds() (int64, error)

ToSeconds returns this time period in seconds. Clamps to math.MaxInt64.

func (*TimePeriod) Validate Uses

func (t *TimePeriod) Validate(c *validation.Context)

Validate validates this time period.

func (*TimePeriod) XXX_DiscardUnknown Uses

func (m *TimePeriod) XXX_DiscardUnknown()

func (*TimePeriod) XXX_Marshal Uses

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

func (*TimePeriod) XXX_Merge Uses

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

func (*TimePeriod) XXX_OneofWrappers Uses

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*TimePeriod) XXX_Size Uses

func (m *TimePeriod) XXX_Size() int

func (*TimePeriod) XXX_Unmarshal Uses

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

type TimePeriod_Duration Uses

type TimePeriod_Duration struct {
    Duration string `protobuf:"bytes,1,opt,name=duration,proto3,oneof"`
}

func (*TimePeriod_Duration) ToSeconds Uses

func (d *TimePeriod_Duration) ToSeconds() (int64, error)

ToSeconds returns this duration in seconds. Clamps to math.MaxInt64.

func (*TimePeriod_Duration) Validate Uses

func (d *TimePeriod_Duration) Validate(c *validation.Context)

Validate validates this duration.

type TimePeriod_Seconds Uses

type TimePeriod_Seconds struct {
    Seconds int64 `protobuf:"varint,2,opt,name=seconds,proto3,oneof"`
}

type UnimplementedConfigurationServer Uses

type UnimplementedConfigurationServer struct {
}

UnimplementedConfigurationServer can be embedded to have forward compatible implementations.

func (*UnimplementedConfigurationServer) Delete Uses

func (*UnimplementedConfigurationServer) Delete(ctx context.Context, req *DeleteRequest) (*empty.Empty, error)

func (*UnimplementedConfigurationServer) Ensure Uses

func (*UnimplementedConfigurationServer) Ensure(ctx context.Context, req *EnsureRequest) (*Config, error)

func (*UnimplementedConfigurationServer) Get Uses

func (*UnimplementedConfigurationServer) Get(ctx context.Context, req *GetRequest) (*Config, error)

func (*UnimplementedConfigurationServer) List Uses

func (*UnimplementedConfigurationServer) List(ctx context.Context, req *ListRequest) (*ListResponse, 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 minimum CPU platform to use for this VM.
    // https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
    MinCpuPlatform string `protobuf:"bytes,4,opt,name=min_cpu_platform,json=minCpuPlatform,proto3" json:"min_cpu_platform,omitempty"`
    // The network interfaces to configure for this VM.
    NetworkInterface []*NetworkInterface `protobuf:"bytes,5,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,6,opt,name=project,proto3" json:"project,omitempty"`
    // The service accounts to make available to this VM.
    ServiceAccount []*ServiceAccount `protobuf:"bytes,7,rep,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
    // The tags to attach to this VM.
    Tag []string `protobuf:"bytes,8,rep,name=tag,proto3" json:"tag,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,9,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) GetMinCpuPlatform Uses

func (m *VM) GetMinCpuPlatform() string

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) GetTag Uses

func (m *VM) GetTag() []string

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) SetZone Uses

func (v *VM) SetZone(zone string)

SetZone sets the given zone throughout this VM.

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) Validate Uses

func (v *VM) Validate(c *validation.Context)

Validate validates this VM description. Metadata FromFile must already be converted to FromText.

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

Package config imports 20 packages (graph) and is imported by 9 packages. Updated 2019-08-17. Refresh now. Tools for package owners.