Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package crypto/v1 contains the API of Crypto services.
Index ¶
- Constants
- Variables
- func CACertificateURL(organizationID, projectID, cacertID string) string
- func ForEachCACertificate(ctx context.Context, ...) error
- func RegisterCryptoServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCryptoServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CryptoServiceClient) error
- func RegisterCryptoServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCryptoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CryptoServiceServer) error
- func RegisterCryptoServiceServer(s *grpc.Server, srv CryptoServiceServer)
- type CACertificate
- func (*CACertificate) Descriptor() ([]byte, []int)
- func (m *CACertificate) GetCertificatePem() string
- func (m *CACertificate) GetClonedFromId() string
- func (m *CACertificate) GetCreatedAt() *types.Timestamp
- func (m *CACertificate) GetDeletedAt() *types.Timestamp
- func (m *CACertificate) GetDescription() string
- func (m *CACertificate) GetExpiresAt() *types.Timestamp
- func (m *CACertificate) GetId() string
- func (m *CACertificate) GetIsDefault() bool
- func (m *CACertificate) GetIsDeleted() bool
- func (m *CACertificate) GetIsExpired() bool
- func (m *CACertificate) GetLifetime() *types.Duration
- func (m *CACertificate) GetLocked() bool
- func (m *CACertificate) GetName() string
- func (m *CACertificate) GetProjectId() string
- func (m *CACertificate) GetRotationNeeded() bool
- func (m *CACertificate) GetUrl() string
- func (m *CACertificate) GetUseWellKnownCertificate() bool
- func (m *CACertificate) GetWillExpireSoon() bool
- func (m *CACertificate) Marshal() (dAtA []byte, err error)
- func (m *CACertificate) MarshalTo(dAtA []byte) (int, error)
- func (m *CACertificate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CACertificate) ProtoMessage()
- func (m *CACertificate) Reset()
- func (m *CACertificate) Size() (n int)
- func (m *CACertificate) String() string
- func (m *CACertificate) Unmarshal(dAtA []byte) error
- func (m *CACertificate) XXX_DiscardUnknown()
- func (m *CACertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CACertificate) XXX_Merge(src proto.Message)
- func (m *CACertificate) XXX_Size() int
- func (m *CACertificate) XXX_Unmarshal(b []byte) error
- type CACertificateCallback
- type CACertificateInstructions
- func (*CACertificateInstructions) Descriptor() ([]byte, []int)
- func (m *CACertificateInstructions) GetPlatforms() []*CACertificateInstructions_PlatformInstructions
- func (m *CACertificateInstructions) Marshal() (dAtA []byte, err error)
- func (m *CACertificateInstructions) MarshalTo(dAtA []byte) (int, error)
- func (m *CACertificateInstructions) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CACertificateInstructions) ProtoMessage()
- func (m *CACertificateInstructions) Reset()
- func (m *CACertificateInstructions) Size() (n int)
- func (m *CACertificateInstructions) String() string
- func (m *CACertificateInstructions) Unmarshal(dAtA []byte) error
- func (m *CACertificateInstructions) XXX_DiscardUnknown()
- func (m *CACertificateInstructions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CACertificateInstructions) XXX_Merge(src proto.Message)
- func (m *CACertificateInstructions) XXX_Size() int
- func (m *CACertificateInstructions) XXX_Unmarshal(b []byte) error
- type CACertificateInstructions_PlatformInstructions
- func (*CACertificateInstructions_PlatformInstructions) Descriptor() ([]byte, []int)
- func (m *CACertificateInstructions_PlatformInstructions) GetInstallSteps() []string
- func (m *CACertificateInstructions_PlatformInstructions) GetPlatform() string
- func (m *CACertificateInstructions_PlatformInstructions) GetUninstallSteps() []string
- func (m *CACertificateInstructions_PlatformInstructions) Marshal() (dAtA []byte, err error)
- func (m *CACertificateInstructions_PlatformInstructions) MarshalTo(dAtA []byte) (int, error)
- func (m *CACertificateInstructions_PlatformInstructions) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CACertificateInstructions_PlatformInstructions) ProtoMessage()
- func (m *CACertificateInstructions_PlatformInstructions) Reset()
- func (m *CACertificateInstructions_PlatformInstructions) Size() (n int)
- func (m *CACertificateInstructions_PlatformInstructions) String() string
- func (m *CACertificateInstructions_PlatformInstructions) Unmarshal(dAtA []byte) error
- func (m *CACertificateInstructions_PlatformInstructions) XXX_DiscardUnknown()
- func (m *CACertificateInstructions_PlatformInstructions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CACertificateInstructions_PlatformInstructions) XXX_Merge(src proto.Message)
- func (m *CACertificateInstructions_PlatformInstructions) XXX_Size() int
- func (m *CACertificateInstructions_PlatformInstructions) XXX_Unmarshal(b []byte) error
- type CACertificateList
- func (*CACertificateList) Descriptor() ([]byte, []int)
- func (m *CACertificateList) GetItems() []*CACertificate
- func (m *CACertificateList) Marshal() (dAtA []byte, err error)
- func (m *CACertificateList) MarshalTo(dAtA []byte) (int, error)
- func (m *CACertificateList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CACertificateList) ProtoMessage()
- func (m *CACertificateList) Reset()
- func (m *CACertificateList) Size() (n int)
- func (m *CACertificateList) String() string
- func (m *CACertificateList) Unmarshal(dAtA []byte) error
- func (m *CACertificateList) XXX_DiscardUnknown()
- func (m *CACertificateList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CACertificateList) XXX_Merge(src proto.Message)
- func (m *CACertificateList) XXX_Size() int
- func (m *CACertificateList) XXX_Unmarshal(b []byte) error
- type CryptoServiceClient
- type CryptoServiceServer
- type ListCACertificatesRequest
- func (*ListCACertificatesRequest) Descriptor() ([]byte, []int)
- func (m *ListCACertificatesRequest) GetClonedFromId() string
- func (m *ListCACertificatesRequest) GetOptions() *v1.ListOptions
- func (m *ListCACertificatesRequest) GetProjectId() string
- func (m *ListCACertificatesRequest) Marshal() (dAtA []byte, err error)
- func (m *ListCACertificatesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ListCACertificatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListCACertificatesRequest) ProtoMessage()
- func (m *ListCACertificatesRequest) Reset()
- func (m *ListCACertificatesRequest) Size() (n int)
- func (m *ListCACertificatesRequest) String() string
- func (m *ListCACertificatesRequest) Unmarshal(dAtA []byte) error
- func (m *ListCACertificatesRequest) XXX_DiscardUnknown()
- func (m *ListCACertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListCACertificatesRequest) XXX_Merge(src proto.Message)
- func (m *ListCACertificatesRequest) XXX_Size() int
- func (m *ListCACertificatesRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedCryptoServiceServer
- func (*UnimplementedCryptoServiceServer) CloneCACertificate(ctx context.Context, req *v1.IDOptions) (*CACertificate, error)
- func (*UnimplementedCryptoServiceServer) CreateCACertificate(ctx context.Context, req *CACertificate) (*CACertificate, error)
- func (*UnimplementedCryptoServiceServer) DeleteCACertificate(ctx context.Context, req *v1.IDOptions) (*v1.Empty, error)
- func (*UnimplementedCryptoServiceServer) GetAPIVersion(ctx context.Context, req *v1.Empty) (*v1.Version, error)
- func (*UnimplementedCryptoServiceServer) GetCACertificate(ctx context.Context, req *v1.IDOptions) (*CACertificate, error)
- func (*UnimplementedCryptoServiceServer) GetCACertificateInstructions(ctx context.Context, req *v1.IDOptions) (*CACertificateInstructions, error)
- func (*UnimplementedCryptoServiceServer) ListCACertificates(ctx context.Context, req *v1.ListOptions) (*CACertificateList, error)
- func (*UnimplementedCryptoServiceServer) ListCACertificatesWithFilter(ctx context.Context, req *ListCACertificatesRequest) (*CACertificateList, error)
- func (*UnimplementedCryptoServiceServer) SetDefaultCACertificate(ctx context.Context, req *CACertificate) (*v1.Empty, error)
- func (*UnimplementedCryptoServiceServer) UpdateCACertificate(ctx context.Context, req *CACertificate) (*CACertificate, error)
Constants ¶
const ( // EventTypeCACertificateCreated is the type of event fired after a CA certificate has been created // SubjectID contains the ID of the CA certificate. EventTypeCACertificateCreated = "crypto.cacertificate.created" // EventTypeCACertificateUpdated is the type of event fired after a CA certificate has been updated // SubjectID contains the ID of the CA certificate. EventTypeCACertificateUpdated = "crypto.cacertificate.updated" // EventTypeCACertificateDeleted is the type of event fired after a CA certificate has been (marked for) deleted // SubjectID contains the ID of the CA certificate. EventTypeCACertificateDeleted = "crypto.cacertificate.deleted" )
const ( // PermissionCACertificateList is needed for listing CA certificates in a project PermissionCACertificateList = "crypto.cacertificate.list" // PermissionCACertificateGet is needed for fetching an individual CA certificates in a project PermissionCACertificateGet = "crypto.cacertificate.get" // PermissionCACertificateCreate is needed for create a CA certificate PermissionCACertificateCreate = "crypto.cacertificate.create" // PermissionCACertificateClone is needed for cloning a CA certificate PermissionCACertificateClone = "crypto.cacertificate.clone" // PermissionCACertificateUpdate is needed for updating a CA certificate PermissionCACertificateUpdate = "crypto.cacertificate.update" // PermissionCACertificateDelete is needed for deleting a CA certificate PermissionCACertificateDelete = "crypto.cacertificate.delete" // PermissionCACertificateSetDefault is needed for setting a CA certificate as default PermissionCACertificateSetDefault = "crypto.cacertificate.set-default" )
const ( // APIID contains identifier of this API APIID = "crypto/v1" // APIMajorVersion contains major version of this API APIMajorVersion = 1 // APIMinorVersion contains minor version of this API APIMinorVersion = 3 // APIPatchVersion contains patch version of this API APIPatchVersion = 1 )
const (
// KindCACertificate is a constants for the kind of CACertificate resources.
KindCACertificate = "CACertificate"
)
Variables ¶
Functions ¶
func CACertificateURL ¶
CACertificateURL creates a resource URL for the CACertificate with given ID in given context.
func ForEachCACertificate ¶
func ForEachCACertificate(ctx context.Context, listFunc func(ctx context.Context, req *common.ListOptions) (*CACertificateList, error), opts *common.ListOptions, cb CACertificateCallback) error
ForEachCACertificate iterates over all CA certificates in the project identified by the given context ID, invoking the given callback for each certificate.
func RegisterCryptoServiceHandler ¶
func RegisterCryptoServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterCryptoServiceHandler registers the http handlers for service CryptoService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterCryptoServiceHandlerClient ¶
func RegisterCryptoServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CryptoServiceClient) error
RegisterCryptoServiceHandlerClient registers the http handlers for service CryptoService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CryptoServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CryptoServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CryptoServiceClient" to call the correct interceptors.
func RegisterCryptoServiceHandlerFromEndpoint ¶
func RegisterCryptoServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterCryptoServiceHandlerFromEndpoint is same as RegisterCryptoServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterCryptoServiceHandlerServer ¶
func RegisterCryptoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CryptoServiceServer) error
RegisterCryptoServiceHandlerServer registers the http handlers for service CryptoService to "mux". UnaryRPC :call CryptoServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterCryptoServiceServer ¶
func RegisterCryptoServiceServer(s *grpc.Server, srv CryptoServiceServer)
Types ¶
type CACertificate ¶
type CACertificate struct { // System identifier of the CA certificate. // This is a read-only value. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // URL of this resource // This is a read-only value. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // Name of the CA certificate Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Description of the CA certificate Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // Identifier of the project that owns this CA certificate. // This value cannot be changed after creation. ProjectId string `protobuf:"bytes,5,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // Time from creation of the CA certificate to expiration. // This value cannot be changed after creation. Lifetime *types.Duration `protobuf:"bytes,6,opt,name=lifetime,proto3" json:"lifetime,omitempty"` // The creation timestamp of the CA certificate // This is a read-only value. CreatedAt *types.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // The deletion timestamp of the CA certificate // This is a read-only value. DeletedAt *types.Timestamp `protobuf:"bytes,8,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // The expiration timestamp of the CA certificate // This is a read-only value. ExpiresAt *types.Timestamp `protobuf:"bytes,9,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // A PEM encoded representation of the public key of the CA certificate. // This is a read-only value. CertificatePem string `protobuf:"bytes,10,opt,name=certificate_pem,json=certificatePem,proto3" json:"certificate_pem,omitempty"` // Set when this CA certificate is deleted. // This is a read-only value. IsDeleted bool `protobuf:"varint,11,opt,name=is_deleted,json=isDeleted,proto3" json:"is_deleted,omitempty"` // Set when this CA certificate has expired. // This is a read-only value. IsExpired bool `protobuf:"varint,12,opt,name=is_expired,json=isExpired,proto3" json:"is_expired,omitempty"` // Set when this CA certificate will expire in the next month. // This is a read-only value. WillExpireSoon bool `protobuf:"varint,13,opt,name=will_expire_soon,json=willExpireSoon,proto3" json:"will_expire_soon,omitempty"` // Set when this certificate is the default in its project. // This is a read-only value. IsDefault bool `protobuf:"varint,14,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` // When enabled, deployments using this certificate use a well known TLS certificate on the 8529 port. // The self-signed certificates is always hosted on port 18529. UseWellKnownCertificate bool `` /* 136-byte string literal not displayed */ // If set, this certificate cannot be deleted. // To delete, first update the with locked set to false. Locked bool `protobuf:"varint,16,opt,name=locked,proto3" json:"locked,omitempty"` // Set when this CA certificate will expire in the next 48 hours. // This is a read-only value. RotationNeeded bool `protobuf:"varint,17,opt,name=rotation_needed,json=rotationNeeded,proto3" json:"rotation_needed,omitempty"` // If set, contains the ID of a CA certificate from which this certificate was cloned. // This is a read-only value. ClonedFromId string `protobuf:"bytes,18,opt,name=cloned_from_id,json=clonedFromId,proto3" json:"cloned_from_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A CACertificate is represents a self-signed certificate authority used to sign TLS certificates for deployments & client authentication.
func (*CACertificate) Descriptor ¶
func (*CACertificate) Descriptor() ([]byte, []int)
func (*CACertificate) GetCertificatePem ¶
func (m *CACertificate) GetCertificatePem() string
func (*CACertificate) GetClonedFromId ¶ added in v0.50.11
func (m *CACertificate) GetClonedFromId() string
func (*CACertificate) GetCreatedAt ¶
func (m *CACertificate) GetCreatedAt() *types.Timestamp
func (*CACertificate) GetDeletedAt ¶
func (m *CACertificate) GetDeletedAt() *types.Timestamp
func (*CACertificate) GetDescription ¶
func (m *CACertificate) GetDescription() string
func (*CACertificate) GetExpiresAt ¶
func (m *CACertificate) GetExpiresAt() *types.Timestamp
func (*CACertificate) GetId ¶
func (m *CACertificate) GetId() string
func (*CACertificate) GetIsDefault ¶
func (m *CACertificate) GetIsDefault() bool
func (*CACertificate) GetIsDeleted ¶
func (m *CACertificate) GetIsDeleted() bool
func (*CACertificate) GetIsExpired ¶
func (m *CACertificate) GetIsExpired() bool
func (*CACertificate) GetLifetime ¶
func (m *CACertificate) GetLifetime() *types.Duration
func (*CACertificate) GetLocked ¶ added in v0.47.0
func (m *CACertificate) GetLocked() bool
func (*CACertificate) GetName ¶
func (m *CACertificate) GetName() string
func (*CACertificate) GetProjectId ¶
func (m *CACertificate) GetProjectId() string
func (*CACertificate) GetRotationNeeded ¶ added in v0.50.9
func (m *CACertificate) GetRotationNeeded() bool
func (*CACertificate) GetUrl ¶
func (m *CACertificate) GetUrl() string
func (*CACertificate) GetUseWellKnownCertificate ¶
func (m *CACertificate) GetUseWellKnownCertificate() bool
func (*CACertificate) GetWillExpireSoon ¶
func (m *CACertificate) GetWillExpireSoon() bool
func (*CACertificate) Marshal ¶
func (m *CACertificate) Marshal() (dAtA []byte, err error)
func (*CACertificate) MarshalToSizedBuffer ¶
func (m *CACertificate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CACertificate) ProtoMessage ¶
func (*CACertificate) ProtoMessage()
func (*CACertificate) Reset ¶
func (m *CACertificate) Reset()
func (*CACertificate) Size ¶
func (m *CACertificate) Size() (n int)
func (*CACertificate) String ¶
func (m *CACertificate) String() string
func (*CACertificate) Unmarshal ¶
func (m *CACertificate) Unmarshal(dAtA []byte) error
func (*CACertificate) XXX_DiscardUnknown ¶
func (m *CACertificate) XXX_DiscardUnknown()
func (*CACertificate) XXX_Marshal ¶
func (m *CACertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CACertificate) XXX_Merge ¶
func (m *CACertificate) XXX_Merge(src proto.Message)
func (*CACertificate) XXX_Size ¶
func (m *CACertificate) XXX_Size() int
func (*CACertificate) XXX_Unmarshal ¶
func (m *CACertificate) XXX_Unmarshal(b []byte) error
type CACertificateCallback ¶
type CACertificateCallback func(context.Context, *CACertificate) error
CACertificateCallback is a callback for individual certificates.
type CACertificateInstructions ¶
type CACertificateInstructions struct { // Per platform instructions for install/uninstall of the CA certificate Platforms []*CACertificateInstructions_PlatformInstructions `protobuf:"bytes,1,rep,name=platforms,proto3" json:"platforms,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Instructions for installing & uninstalling CA certificates
func (*CACertificateInstructions) Descriptor ¶
func (*CACertificateInstructions) Descriptor() ([]byte, []int)
func (*CACertificateInstructions) GetPlatforms ¶
func (m *CACertificateInstructions) GetPlatforms() []*CACertificateInstructions_PlatformInstructions
func (*CACertificateInstructions) Marshal ¶
func (m *CACertificateInstructions) Marshal() (dAtA []byte, err error)
func (*CACertificateInstructions) MarshalTo ¶
func (m *CACertificateInstructions) MarshalTo(dAtA []byte) (int, error)
func (*CACertificateInstructions) MarshalToSizedBuffer ¶
func (m *CACertificateInstructions) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CACertificateInstructions) ProtoMessage ¶
func (*CACertificateInstructions) ProtoMessage()
func (*CACertificateInstructions) Reset ¶
func (m *CACertificateInstructions) Reset()
func (*CACertificateInstructions) Size ¶
func (m *CACertificateInstructions) Size() (n int)
func (*CACertificateInstructions) String ¶
func (m *CACertificateInstructions) String() string
func (*CACertificateInstructions) Unmarshal ¶
func (m *CACertificateInstructions) Unmarshal(dAtA []byte) error
func (*CACertificateInstructions) XXX_DiscardUnknown ¶
func (m *CACertificateInstructions) XXX_DiscardUnknown()
func (*CACertificateInstructions) XXX_Marshal ¶
func (m *CACertificateInstructions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CACertificateInstructions) XXX_Merge ¶
func (m *CACertificateInstructions) XXX_Merge(src proto.Message)
func (*CACertificateInstructions) XXX_Size ¶
func (m *CACertificateInstructions) XXX_Size() int
func (*CACertificateInstructions) XXX_Unmarshal ¶
func (m *CACertificateInstructions) XXX_Unmarshal(b []byte) error
type CACertificateInstructions_PlatformInstructions ¶
type CACertificateInstructions_PlatformInstructions struct { // Human readable description of platform. // E.g. "MacOS" Platform string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"` // Steps needed to install InstallSteps []string `protobuf:"bytes,2,rep,name=install_steps,json=installSteps,proto3" json:"install_steps,omitempty"` // Steps needed to uninstall UninstallSteps []string `protobuf:"bytes,3,rep,name=uninstall_steps,json=uninstallSteps,proto3" json:"uninstall_steps,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Instructions for a specific platform
func (*CACertificateInstructions_PlatformInstructions) Descriptor ¶
func (*CACertificateInstructions_PlatformInstructions) Descriptor() ([]byte, []int)
func (*CACertificateInstructions_PlatformInstructions) GetInstallSteps ¶
func (m *CACertificateInstructions_PlatformInstructions) GetInstallSteps() []string
func (*CACertificateInstructions_PlatformInstructions) GetPlatform ¶
func (m *CACertificateInstructions_PlatformInstructions) GetPlatform() string
func (*CACertificateInstructions_PlatformInstructions) GetUninstallSteps ¶
func (m *CACertificateInstructions_PlatformInstructions) GetUninstallSteps() []string
func (*CACertificateInstructions_PlatformInstructions) Marshal ¶
func (m *CACertificateInstructions_PlatformInstructions) Marshal() (dAtA []byte, err error)
func (*CACertificateInstructions_PlatformInstructions) MarshalTo ¶
func (m *CACertificateInstructions_PlatformInstructions) MarshalTo(dAtA []byte) (int, error)
func (*CACertificateInstructions_PlatformInstructions) MarshalToSizedBuffer ¶
func (m *CACertificateInstructions_PlatformInstructions) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CACertificateInstructions_PlatformInstructions) ProtoMessage ¶
func (*CACertificateInstructions_PlatformInstructions) ProtoMessage()
func (*CACertificateInstructions_PlatformInstructions) Reset ¶
func (m *CACertificateInstructions_PlatformInstructions) Reset()
func (*CACertificateInstructions_PlatformInstructions) Size ¶
func (m *CACertificateInstructions_PlatformInstructions) Size() (n int)
func (*CACertificateInstructions_PlatformInstructions) String ¶
func (m *CACertificateInstructions_PlatformInstructions) String() string
func (*CACertificateInstructions_PlatformInstructions) Unmarshal ¶
func (m *CACertificateInstructions_PlatformInstructions) Unmarshal(dAtA []byte) error
func (*CACertificateInstructions_PlatformInstructions) XXX_DiscardUnknown ¶
func (m *CACertificateInstructions_PlatformInstructions) XXX_DiscardUnknown()
func (*CACertificateInstructions_PlatformInstructions) XXX_Marshal ¶
func (m *CACertificateInstructions_PlatformInstructions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CACertificateInstructions_PlatformInstructions) XXX_Merge ¶
func (m *CACertificateInstructions_PlatformInstructions) XXX_Merge(src proto.Message)
func (*CACertificateInstructions_PlatformInstructions) XXX_Size ¶
func (m *CACertificateInstructions_PlatformInstructions) XXX_Size() int
func (*CACertificateInstructions_PlatformInstructions) XXX_Unmarshal ¶
func (m *CACertificateInstructions_PlatformInstructions) XXX_Unmarshal(b []byte) error
type CACertificateList ¶
type CACertificateList struct { Items []*CACertificate `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
List of CACertificates.
func (*CACertificateList) Descriptor ¶
func (*CACertificateList) Descriptor() ([]byte, []int)
func (*CACertificateList) GetItems ¶
func (m *CACertificateList) GetItems() []*CACertificate
func (*CACertificateList) Marshal ¶
func (m *CACertificateList) Marshal() (dAtA []byte, err error)
func (*CACertificateList) MarshalTo ¶
func (m *CACertificateList) MarshalTo(dAtA []byte) (int, error)
func (*CACertificateList) MarshalToSizedBuffer ¶
func (m *CACertificateList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CACertificateList) ProtoMessage ¶
func (*CACertificateList) ProtoMessage()
func (*CACertificateList) Reset ¶
func (m *CACertificateList) Reset()
func (*CACertificateList) Size ¶
func (m *CACertificateList) Size() (n int)
func (*CACertificateList) String ¶
func (m *CACertificateList) String() string
func (*CACertificateList) Unmarshal ¶
func (m *CACertificateList) Unmarshal(dAtA []byte) error
func (*CACertificateList) XXX_DiscardUnknown ¶
func (m *CACertificateList) XXX_DiscardUnknown()
func (*CACertificateList) XXX_Marshal ¶
func (m *CACertificateList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CACertificateList) XXX_Merge ¶
func (m *CACertificateList) XXX_Merge(src proto.Message)
func (*CACertificateList) XXX_Size ¶
func (m *CACertificateList) XXX_Size() int
func (*CACertificateList) XXX_Unmarshal ¶
func (m *CACertificateList) XXX_Unmarshal(b []byte) error
type CryptoServiceClient ¶
type CryptoServiceClient interface { // Get the current API version of this service. // Required permissions: // - None GetAPIVersion(ctx context.Context, in *v1.Empty, opts ...grpc.CallOption) (*v1.Version, error) // Fetch all CA certificates in the project identified by the given context ID. // Required permissions: // - crypto.cacertificate.list on the project identified by the given context ID ListCACertificates(ctx context.Context, in *v1.ListOptions, opts ...grpc.CallOption) (*CACertificateList, error) // Fetch all CA certificates in the project identified by the given project ID // that match the given filter. // Required permissions: // - crypto.cacertificate.list on the project identified by the given context ID ListCACertificatesWithFilter(ctx context.Context, in *ListCACertificatesRequest, opts ...grpc.CallOption) (*CACertificateList, error) // Fetch a CA certificate by its id. // Required permissions: // - crypto.cacertificate.get on the CA certificate identified by the given ID GetCACertificate(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*CACertificate, error) // Fetch instructions for installing & unistalling a CA certificate identified by its id // on various platforms. // Required permissions: // - crypto.cacertificate.get on the CA certificate identified by the given ID GetCACertificateInstructions(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*CACertificateInstructions, error) // Create a new CA certificate // Required permissions: // - crypto.cacertificate.create on the project that owns the CA certificate CreateCACertificate(ctx context.Context, in *CACertificate, opts ...grpc.CallOption) (*CACertificate, error) // Clone a CA certificate identified by given id. // Required permissions: // - crypto.cacertificate.clone on the project that owns the CA certificate identified by the given ID CloneCACertificate(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*CACertificate, error) // Update a CA certificate // Required permissions: // - crypto.cacertificate.update on the CA certificate UpdateCACertificate(ctx context.Context, in *CACertificate, opts ...grpc.CallOption) (*CACertificate, error) // Delete a CA certificate // Note that CA certificate are initially only marked for deleted. // Once all the resources that depend on it are removed the CA certificate itself is deleted // and cannot be restored. // Required permissions: // - crypto.cacertificate.delete on the CA certificate DeleteCACertificate(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*v1.Empty, error) // Mark the given CA certificate as default for its containing project. // Required permissions: // - crypto.cacertificate.set-default on the project that owns the certificate. SetDefaultCACertificate(ctx context.Context, in *CACertificate, opts ...grpc.CallOption) (*v1.Empty, error) }
CryptoServiceClient is the client API for CryptoService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCryptoServiceClient ¶
func NewCryptoServiceClient(cc *grpc.ClientConn) CryptoServiceClient
type CryptoServiceServer ¶
type CryptoServiceServer interface { // Get the current API version of this service. // Required permissions: // - None GetAPIVersion(context.Context, *v1.Empty) (*v1.Version, error) // Fetch all CA certificates in the project identified by the given context ID. // Required permissions: // - crypto.cacertificate.list on the project identified by the given context ID ListCACertificates(context.Context, *v1.ListOptions) (*CACertificateList, error) // Fetch all CA certificates in the project identified by the given project ID // that match the given filter. // Required permissions: // - crypto.cacertificate.list on the project identified by the given context ID ListCACertificatesWithFilter(context.Context, *ListCACertificatesRequest) (*CACertificateList, error) // Fetch a CA certificate by its id. // Required permissions: // - crypto.cacertificate.get on the CA certificate identified by the given ID GetCACertificate(context.Context, *v1.IDOptions) (*CACertificate, error) // Fetch instructions for installing & unistalling a CA certificate identified by its id // on various platforms. // Required permissions: // - crypto.cacertificate.get on the CA certificate identified by the given ID GetCACertificateInstructions(context.Context, *v1.IDOptions) (*CACertificateInstructions, error) // Create a new CA certificate // Required permissions: // - crypto.cacertificate.create on the project that owns the CA certificate CreateCACertificate(context.Context, *CACertificate) (*CACertificate, error) // Clone a CA certificate identified by given id. // Required permissions: // - crypto.cacertificate.clone on the project that owns the CA certificate identified by the given ID CloneCACertificate(context.Context, *v1.IDOptions) (*CACertificate, error) // Update a CA certificate // Required permissions: // - crypto.cacertificate.update on the CA certificate UpdateCACertificate(context.Context, *CACertificate) (*CACertificate, error) // Delete a CA certificate // Note that CA certificate are initially only marked for deleted. // Once all the resources that depend on it are removed the CA certificate itself is deleted // and cannot be restored. // Required permissions: // - crypto.cacertificate.delete on the CA certificate DeleteCACertificate(context.Context, *v1.IDOptions) (*v1.Empty, error) // Mark the given CA certificate as default for its containing project. // Required permissions: // - crypto.cacertificate.set-default on the project that owns the certificate. SetDefaultCACertificate(context.Context, *CACertificate) (*v1.Empty, error) }
CryptoServiceServer is the server API for CryptoService service.
type ListCACertificatesRequest ¶ added in v0.50.11
type ListCACertificatesRequest struct { // Common list options. // Context_id is ignored. Options *v1.ListOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"` // Required ID of project to list certificates for. ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // If set, include only certificates that were cloned from the certificate // with this ID. ClonedFromId string `protobuf:"bytes,10,opt,name=cloned_from_id,json=clonedFromId,proto3" json:"cloned_from_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request arguments for ListCACertificatesWithFilter.
func (*ListCACertificatesRequest) Descriptor ¶ added in v0.50.11
func (*ListCACertificatesRequest) Descriptor() ([]byte, []int)
func (*ListCACertificatesRequest) GetClonedFromId ¶ added in v0.50.11
func (m *ListCACertificatesRequest) GetClonedFromId() string
func (*ListCACertificatesRequest) GetOptions ¶ added in v0.50.11
func (m *ListCACertificatesRequest) GetOptions() *v1.ListOptions
func (*ListCACertificatesRequest) GetProjectId ¶ added in v0.50.11
func (m *ListCACertificatesRequest) GetProjectId() string
func (*ListCACertificatesRequest) Marshal ¶ added in v0.50.11
func (m *ListCACertificatesRequest) Marshal() (dAtA []byte, err error)
func (*ListCACertificatesRequest) MarshalTo ¶ added in v0.50.11
func (m *ListCACertificatesRequest) MarshalTo(dAtA []byte) (int, error)
func (*ListCACertificatesRequest) MarshalToSizedBuffer ¶ added in v0.50.11
func (m *ListCACertificatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListCACertificatesRequest) ProtoMessage ¶ added in v0.50.11
func (*ListCACertificatesRequest) ProtoMessage()
func (*ListCACertificatesRequest) Reset ¶ added in v0.50.11
func (m *ListCACertificatesRequest) Reset()
func (*ListCACertificatesRequest) Size ¶ added in v0.50.11
func (m *ListCACertificatesRequest) Size() (n int)
func (*ListCACertificatesRequest) String ¶ added in v0.50.11
func (m *ListCACertificatesRequest) String() string
func (*ListCACertificatesRequest) Unmarshal ¶ added in v0.50.11
func (m *ListCACertificatesRequest) Unmarshal(dAtA []byte) error
func (*ListCACertificatesRequest) XXX_DiscardUnknown ¶ added in v0.50.11
func (m *ListCACertificatesRequest) XXX_DiscardUnknown()
func (*ListCACertificatesRequest) XXX_Marshal ¶ added in v0.50.11
func (m *ListCACertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListCACertificatesRequest) XXX_Merge ¶ added in v0.50.11
func (m *ListCACertificatesRequest) XXX_Merge(src proto.Message)
func (*ListCACertificatesRequest) XXX_Size ¶ added in v0.50.11
func (m *ListCACertificatesRequest) XXX_Size() int
func (*ListCACertificatesRequest) XXX_Unmarshal ¶ added in v0.50.11
func (m *ListCACertificatesRequest) XXX_Unmarshal(b []byte) error
type UnimplementedCryptoServiceServer ¶
type UnimplementedCryptoServiceServer struct { }
UnimplementedCryptoServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCryptoServiceServer) CloneCACertificate ¶ added in v0.50.11
func (*UnimplementedCryptoServiceServer) CloneCACertificate(ctx context.Context, req *v1.IDOptions) (*CACertificate, error)
func (*UnimplementedCryptoServiceServer) CreateCACertificate ¶
func (*UnimplementedCryptoServiceServer) CreateCACertificate(ctx context.Context, req *CACertificate) (*CACertificate, error)
func (*UnimplementedCryptoServiceServer) DeleteCACertificate ¶
func (*UnimplementedCryptoServiceServer) GetAPIVersion ¶
func (*UnimplementedCryptoServiceServer) GetCACertificate ¶
func (*UnimplementedCryptoServiceServer) GetCACertificate(ctx context.Context, req *v1.IDOptions) (*CACertificate, error)
func (*UnimplementedCryptoServiceServer) GetCACertificateInstructions ¶
func (*UnimplementedCryptoServiceServer) GetCACertificateInstructions(ctx context.Context, req *v1.IDOptions) (*CACertificateInstructions, error)
func (*UnimplementedCryptoServiceServer) ListCACertificates ¶
func (*UnimplementedCryptoServiceServer) ListCACertificates(ctx context.Context, req *v1.ListOptions) (*CACertificateList, error)
func (*UnimplementedCryptoServiceServer) ListCACertificatesWithFilter ¶ added in v0.50.11
func (*UnimplementedCryptoServiceServer) ListCACertificatesWithFilter(ctx context.Context, req *ListCACertificatesRequest) (*CACertificateList, error)
func (*UnimplementedCryptoServiceServer) SetDefaultCACertificate ¶
func (*UnimplementedCryptoServiceServer) SetDefaultCACertificate(ctx context.Context, req *CACertificate) (*v1.Empty, error)
func (*UnimplementedCryptoServiceServer) UpdateCACertificate ¶
func (*UnimplementedCryptoServiceServer) UpdateCACertificate(ctx context.Context, req *CACertificate) (*CACertificate, error)