cloudinit

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCloudinit        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCloudinit          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCloudinit = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterCloudInitServiceServer

func RegisterCloudInitServiceServer(s *grpc.Server, srv CloudInitServiceServer)

Types

type BuildImageRequest

type BuildImageRequest struct {
	MachineName string `protobuf:"bytes,1,opt,name=machine_name,json=machineName,proto3" json:"machine_name,omitempty"`
	// The instance-data keys
	Platform         string `protobuf:"bytes,101,opt,name=platform,proto3" json:"platform,omitempty"`
	Subplatform      string `protobuf:"bytes,102,opt,name=subplatform,proto3" json:"subplatform,omitempty"`
	Cloudname        string `protobuf:"bytes,103,opt,name=cloudname,proto3" json:"cloudname,omitempty"`
	Region           string `protobuf:"bytes,104,opt,name=region,proto3" json:"region,omitempty"`
	AvailabilityZone string `protobuf:"bytes,105,opt,name=availability_zone,json=availabilityZone,proto3" json:"availability_zone,omitempty"`
	// These fields override the same name keys
	// from user_config structure
	Hostname             string   `protobuf:"bytes,201,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Domain               string   `protobuf:"bytes,202,opt,name=domain,proto3" json:"domain,omitempty"`
	Timezone             string   `protobuf:"bytes,203,opt,name=timezone,proto3" json:"timezone,omitempty"`
	UserConfig           []byte   `protobuf:"bytes,299,opt,name=user_config,json=userConfig,proto3" json:"user_config,omitempty"`
	OutputFile           string   `protobuf:"bytes,301,opt,name=output_file,json=outputFile,proto3" json:"output_file,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BuildImageRequest) Descriptor

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

func (*BuildImageRequest) GetAvailabilityZone

func (m *BuildImageRequest) GetAvailabilityZone() string

func (*BuildImageRequest) GetCloudname

func (m *BuildImageRequest) GetCloudname() string

func (*BuildImageRequest) GetDomain

func (m *BuildImageRequest) GetDomain() string

func (*BuildImageRequest) GetHostname

func (m *BuildImageRequest) GetHostname() string

func (*BuildImageRequest) GetMachineName

func (m *BuildImageRequest) GetMachineName() string

func (*BuildImageRequest) GetOutputFile

func (m *BuildImageRequest) GetOutputFile() string

func (*BuildImageRequest) GetPlatform

func (m *BuildImageRequest) GetPlatform() string

func (*BuildImageRequest) GetRegion

func (m *BuildImageRequest) GetRegion() string

func (*BuildImageRequest) GetSubplatform

func (m *BuildImageRequest) GetSubplatform() string

func (*BuildImageRequest) GetTimezone

func (m *BuildImageRequest) GetTimezone() string

func (*BuildImageRequest) GetUserConfig

func (m *BuildImageRequest) GetUserConfig() []byte

func (*BuildImageRequest) Marshal

func (m *BuildImageRequest) Marshal() (dAtA []byte, err error)

func (*BuildImageRequest) MarshalTo

func (m *BuildImageRequest) MarshalTo(dAtA []byte) (int, error)

func (*BuildImageRequest) MarshalToSizedBuffer

func (m *BuildImageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BuildImageRequest) ProtoMessage

func (*BuildImageRequest) ProtoMessage()

func (*BuildImageRequest) Reset

func (m *BuildImageRequest) Reset()

func (*BuildImageRequest) Size

func (m *BuildImageRequest) Size() (n int)

func (*BuildImageRequest) String

func (m *BuildImageRequest) String() string

func (*BuildImageRequest) Unmarshal

func (m *BuildImageRequest) Unmarshal(dAtA []byte) error

func (*BuildImageRequest) XXX_DiscardUnknown

func (m *BuildImageRequest) XXX_DiscardUnknown()

func (*BuildImageRequest) XXX_Marshal

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

func (*BuildImageRequest) XXX_Merge

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

func (*BuildImageRequest) XXX_Size

func (m *BuildImageRequest) XXX_Size() int

func (*BuildImageRequest) XXX_Unmarshal

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

type BuildImageResponse

type BuildImageResponse struct {
	OutputFile           string   `protobuf:"bytes,1,opt,name=output_file,json=outputFile,proto3" json:"output_file,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BuildImageResponse) Descriptor

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

func (*BuildImageResponse) GetOutputFile

func (m *BuildImageResponse) GetOutputFile() string

func (*BuildImageResponse) Marshal

func (m *BuildImageResponse) Marshal() (dAtA []byte, err error)

func (*BuildImageResponse) MarshalTo

func (m *BuildImageResponse) MarshalTo(dAtA []byte) (int, error)

func (*BuildImageResponse) MarshalToSizedBuffer

func (m *BuildImageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BuildImageResponse) ProtoMessage

func (*BuildImageResponse) ProtoMessage()

func (*BuildImageResponse) Reset

func (m *BuildImageResponse) Reset()

func (*BuildImageResponse) Size

func (m *BuildImageResponse) Size() (n int)

func (*BuildImageResponse) String

func (m *BuildImageResponse) String() string

func (*BuildImageResponse) Unmarshal

func (m *BuildImageResponse) Unmarshal(dAtA []byte) error

func (*BuildImageResponse) XXX_DiscardUnknown

func (m *BuildImageResponse) XXX_DiscardUnknown()

func (*BuildImageResponse) XXX_Marshal

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

func (*BuildImageResponse) XXX_Merge

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

func (*BuildImageResponse) XXX_Size

func (m *BuildImageResponse) XXX_Size() int

func (*BuildImageResponse) XXX_Unmarshal

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

type CloudInitServiceClient

type CloudInitServiceClient interface {
	BuildImage(ctx context.Context, in *BuildImageRequest, opts ...grpc.CallOption) (*BuildImageResponse, error)
}

CloudInitServiceClient is the client API for CloudInitService service.

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

func NewCloudInitServiceClient

func NewCloudInitServiceClient(cc *grpc.ClientConn) CloudInitServiceClient

type CloudInitServiceServer

type CloudInitServiceServer interface {
	BuildImage(context.Context, *BuildImageRequest) (*BuildImageResponse, error)
}

CloudInitServiceServer is the server API for CloudInitService service.

type UnimplementedCloudInitServiceServer

type UnimplementedCloudInitServiceServer struct {
}

UnimplementedCloudInitServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCloudInitServiceServer) BuildImage

Jump to

Keyboard shortcuts

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