oslogin

package
v0.0.0-...-0e82294 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterOsLoginServiceServer

func RegisterOsLoginServiceServer(s *grpc.Server, srv OsLoginServiceServer)

Types

type DeletePosixAccountRequest

type DeletePosixAccountRequest struct {
	// A reference to the POSIX account to update. POSIX accounts are identified
	// by the project ID they are associated with. A reference to the POSIX
	// account is in format `users/{user}/projects/{project}`.
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A request message for deleting a POSIX account entry.

func (*DeletePosixAccountRequest) Descriptor

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

func (*DeletePosixAccountRequest) GetName

func (m *DeletePosixAccountRequest) GetName() string

func (*DeletePosixAccountRequest) ProtoMessage

func (*DeletePosixAccountRequest) ProtoMessage()

func (*DeletePosixAccountRequest) Reset

func (m *DeletePosixAccountRequest) Reset()

func (*DeletePosixAccountRequest) String

func (m *DeletePosixAccountRequest) String() string

func (*DeletePosixAccountRequest) XXX_DiscardUnknown

func (m *DeletePosixAccountRequest) XXX_DiscardUnknown()

func (*DeletePosixAccountRequest) XXX_Marshal

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

func (*DeletePosixAccountRequest) XXX_Merge

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

func (*DeletePosixAccountRequest) XXX_Size

func (m *DeletePosixAccountRequest) XXX_Size() int

func (*DeletePosixAccountRequest) XXX_Unmarshal

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

type DeleteSshPublicKeyRequest

type DeleteSshPublicKeyRequest struct {
	// The fingerprint of the public key to update. Public keys are identified by
	// their SHA-256 fingerprint. The fingerprint of the public key is in format
	// `users/{user}/sshPublicKeys/{fingerprint}`.
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A request message for deleting an SSH public key.

func (*DeleteSshPublicKeyRequest) Descriptor

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

func (*DeleteSshPublicKeyRequest) GetName

func (m *DeleteSshPublicKeyRequest) GetName() string

func (*DeleteSshPublicKeyRequest) ProtoMessage

func (*DeleteSshPublicKeyRequest) ProtoMessage()

func (*DeleteSshPublicKeyRequest) Reset

func (m *DeleteSshPublicKeyRequest) Reset()

func (*DeleteSshPublicKeyRequest) String

func (m *DeleteSshPublicKeyRequest) String() string

func (*DeleteSshPublicKeyRequest) XXX_DiscardUnknown

func (m *DeleteSshPublicKeyRequest) XXX_DiscardUnknown()

func (*DeleteSshPublicKeyRequest) XXX_Marshal

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

func (*DeleteSshPublicKeyRequest) XXX_Merge

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

func (*DeleteSshPublicKeyRequest) XXX_Size

func (m *DeleteSshPublicKeyRequest) XXX_Size() int

func (*DeleteSshPublicKeyRequest) XXX_Unmarshal

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

type GetLoginProfileRequest

type GetLoginProfileRequest struct {
	// The unique ID for the user in format `users/{user}`.
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A request message for retrieving the login profile information for a user.

func (*GetLoginProfileRequest) Descriptor

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

func (*GetLoginProfileRequest) GetName

func (m *GetLoginProfileRequest) GetName() string

func (*GetLoginProfileRequest) ProtoMessage

func (*GetLoginProfileRequest) ProtoMessage()

func (*GetLoginProfileRequest) Reset

func (m *GetLoginProfileRequest) Reset()

func (*GetLoginProfileRequest) String

func (m *GetLoginProfileRequest) String() string

func (*GetLoginProfileRequest) XXX_DiscardUnknown

func (m *GetLoginProfileRequest) XXX_DiscardUnknown()

func (*GetLoginProfileRequest) XXX_Marshal

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

func (*GetLoginProfileRequest) XXX_Merge

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

func (*GetLoginProfileRequest) XXX_Size

func (m *GetLoginProfileRequest) XXX_Size() int

func (*GetLoginProfileRequest) XXX_Unmarshal

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

type GetSshPublicKeyRequest

type GetSshPublicKeyRequest struct {
	// The fingerprint of the public key to retrieve. Public keys are identified
	// by their SHA-256 fingerprint. The fingerprint of the public key is in
	// format `users/{user}/sshPublicKeys/{fingerprint}`.
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A request message for retrieving an SSH public key.

func (*GetSshPublicKeyRequest) Descriptor

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

func (*GetSshPublicKeyRequest) GetName

func (m *GetSshPublicKeyRequest) GetName() string

func (*GetSshPublicKeyRequest) ProtoMessage

func (*GetSshPublicKeyRequest) ProtoMessage()

func (*GetSshPublicKeyRequest) Reset

func (m *GetSshPublicKeyRequest) Reset()

func (*GetSshPublicKeyRequest) String

func (m *GetSshPublicKeyRequest) String() string

func (*GetSshPublicKeyRequest) XXX_DiscardUnknown

func (m *GetSshPublicKeyRequest) XXX_DiscardUnknown()

func (*GetSshPublicKeyRequest) XXX_Marshal

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

func (*GetSshPublicKeyRequest) XXX_Merge

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

func (*GetSshPublicKeyRequest) XXX_Size

func (m *GetSshPublicKeyRequest) XXX_Size() int

func (*GetSshPublicKeyRequest) XXX_Unmarshal

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

type ImportSshPublicKeyRequest

type ImportSshPublicKeyRequest struct {
	// The unique ID for the user in format `users/{user}`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The SSH public key and expiration time.
	SshPublicKey *common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey,proto3" json:"ssh_public_key,omitempty"`
	// The project ID of the Google Cloud Platform project.
	ProjectId            string   `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A request message for importing an SSH public key.

func (*ImportSshPublicKeyRequest) Descriptor

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

func (*ImportSshPublicKeyRequest) GetParent

func (m *ImportSshPublicKeyRequest) GetParent() string

func (*ImportSshPublicKeyRequest) GetProjectId

func (m *ImportSshPublicKeyRequest) GetProjectId() string

func (*ImportSshPublicKeyRequest) GetSshPublicKey

func (m *ImportSshPublicKeyRequest) GetSshPublicKey() *common.SshPublicKey

func (*ImportSshPublicKeyRequest) ProtoMessage

func (*ImportSshPublicKeyRequest) ProtoMessage()

func (*ImportSshPublicKeyRequest) Reset

func (m *ImportSshPublicKeyRequest) Reset()

func (*ImportSshPublicKeyRequest) String

func (m *ImportSshPublicKeyRequest) String() string

func (*ImportSshPublicKeyRequest) XXX_DiscardUnknown

func (m *ImportSshPublicKeyRequest) XXX_DiscardUnknown()

func (*ImportSshPublicKeyRequest) XXX_Marshal

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

func (*ImportSshPublicKeyRequest) XXX_Merge

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

func (*ImportSshPublicKeyRequest) XXX_Size

func (m *ImportSshPublicKeyRequest) XXX_Size() int

func (*ImportSshPublicKeyRequest) XXX_Unmarshal

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

type ImportSshPublicKeyResponse

type ImportSshPublicKeyResponse struct {
	// The login profile information for the user.
	LoginProfile         *LoginProfile `protobuf:"bytes,1,opt,name=login_profile,json=loginProfile,proto3" json:"login_profile,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

A response message for importing an SSH public key.

func (*ImportSshPublicKeyResponse) Descriptor

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

func (*ImportSshPublicKeyResponse) GetLoginProfile

func (m *ImportSshPublicKeyResponse) GetLoginProfile() *LoginProfile

func (*ImportSshPublicKeyResponse) ProtoMessage

func (*ImportSshPublicKeyResponse) ProtoMessage()

func (*ImportSshPublicKeyResponse) Reset

func (m *ImportSshPublicKeyResponse) Reset()

func (*ImportSshPublicKeyResponse) String

func (m *ImportSshPublicKeyResponse) String() string

func (*ImportSshPublicKeyResponse) XXX_DiscardUnknown

func (m *ImportSshPublicKeyResponse) XXX_DiscardUnknown()

func (*ImportSshPublicKeyResponse) XXX_Marshal

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

func (*ImportSshPublicKeyResponse) XXX_Merge

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

func (*ImportSshPublicKeyResponse) XXX_Size

func (m *ImportSshPublicKeyResponse) XXX_Size() int

func (*ImportSshPublicKeyResponse) XXX_Unmarshal

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

type LoginProfile

type LoginProfile struct {
	// The primary email address that uniquely identifies the user.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The list of POSIX accounts associated with the user.
	PosixAccounts []*common.PosixAccount `protobuf:"bytes,2,rep,name=posix_accounts,json=posixAccounts,proto3" json:"posix_accounts,omitempty"`
	// A map from SSH public key fingerprint to the associated key object.
	SshPublicKeys map[string]*common.SshPublicKey `` /* 190-byte string literal not displayed */
	// Indicates if the user is suspended. A suspended user cannot log in but
	// their profile information is retained.
	Suspended            bool     `protobuf:"varint,4,opt,name=suspended,proto3" json:"suspended,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The user profile information used for logging in to a virtual machine on Google Compute Engine.

func (*LoginProfile) Descriptor

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

func (*LoginProfile) GetName

func (m *LoginProfile) GetName() string

func (*LoginProfile) GetPosixAccounts

func (m *LoginProfile) GetPosixAccounts() []*common.PosixAccount

func (*LoginProfile) GetSshPublicKeys

func (m *LoginProfile) GetSshPublicKeys() map[string]*common.SshPublicKey

func (*LoginProfile) GetSuspended

func (m *LoginProfile) GetSuspended() bool

func (*LoginProfile) ProtoMessage

func (*LoginProfile) ProtoMessage()

func (*LoginProfile) Reset

func (m *LoginProfile) Reset()

func (*LoginProfile) String

func (m *LoginProfile) String() string

func (*LoginProfile) XXX_DiscardUnknown

func (m *LoginProfile) XXX_DiscardUnknown()

func (*LoginProfile) XXX_Marshal

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

func (*LoginProfile) XXX_Merge

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

func (*LoginProfile) XXX_Size

func (m *LoginProfile) XXX_Size() int

func (*LoginProfile) XXX_Unmarshal

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

type OsLoginServiceClient

type OsLoginServiceClient interface {
	// Deletes a POSIX account.
	DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Deletes an SSH public key.
	DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Retrieves the profile information used for logging in to a virtual machine
	// on Google Compute Engine.
	GetLoginProfile(ctx context.Context, in *GetLoginProfileRequest, opts ...grpc.CallOption) (*LoginProfile, error)
	// Retrieves an SSH public key.
	GetSshPublicKey(ctx context.Context, in *GetSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error)
	// Adds an SSH public key and returns the profile information. Default POSIX
	// account information is set when no username and UID exist as part of the
	// login profile.
	ImportSshPublicKey(ctx context.Context, in *ImportSshPublicKeyRequest, opts ...grpc.CallOption) (*ImportSshPublicKeyResponse, error)
	// Updates an SSH public key and returns the profile information. This method
	// supports patch semantics.
	UpdateSshPublicKey(ctx context.Context, in *UpdateSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error)
}

OsLoginServiceClient is the client API for OsLoginService service.

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

func NewOsLoginServiceClient

func NewOsLoginServiceClient(cc *grpc.ClientConn) OsLoginServiceClient

type OsLoginServiceServer

type OsLoginServiceServer interface {
	// Deletes a POSIX account.
	DeletePosixAccount(context.Context, *DeletePosixAccountRequest) (*empty.Empty, error)
	// Deletes an SSH public key.
	DeleteSshPublicKey(context.Context, *DeleteSshPublicKeyRequest) (*empty.Empty, error)
	// Retrieves the profile information used for logging in to a virtual machine
	// on Google Compute Engine.
	GetLoginProfile(context.Context, *GetLoginProfileRequest) (*LoginProfile, error)
	// Retrieves an SSH public key.
	GetSshPublicKey(context.Context, *GetSshPublicKeyRequest) (*common.SshPublicKey, error)
	// Adds an SSH public key and returns the profile information. Default POSIX
	// account information is set when no username and UID exist as part of the
	// login profile.
	ImportSshPublicKey(context.Context, *ImportSshPublicKeyRequest) (*ImportSshPublicKeyResponse, error)
	// Updates an SSH public key and returns the profile information. This method
	// supports patch semantics.
	UpdateSshPublicKey(context.Context, *UpdateSshPublicKeyRequest) (*common.SshPublicKey, error)
}

OsLoginServiceServer is the server API for OsLoginService service.

type UpdateSshPublicKeyRequest

type UpdateSshPublicKeyRequest struct {
	// The fingerprint of the public key to update. Public keys are identified by
	// their SHA-256 fingerprint. The fingerprint of the public key is in format
	// `users/{user}/sshPublicKeys/{fingerprint}`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The SSH public key and expiration time.
	SshPublicKey *common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey,proto3" json:"ssh_public_key,omitempty"`
	// Mask to control which fields get updated. Updates all if not present.
	UpdateMask           *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

A request message for updating an SSH public key.

func (*UpdateSshPublicKeyRequest) Descriptor

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

func (*UpdateSshPublicKeyRequest) GetName

func (m *UpdateSshPublicKeyRequest) GetName() string

func (*UpdateSshPublicKeyRequest) GetSshPublicKey

func (m *UpdateSshPublicKeyRequest) GetSshPublicKey() *common.SshPublicKey

func (*UpdateSshPublicKeyRequest) GetUpdateMask

func (m *UpdateSshPublicKeyRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateSshPublicKeyRequest) ProtoMessage

func (*UpdateSshPublicKeyRequest) ProtoMessage()

func (*UpdateSshPublicKeyRequest) Reset

func (m *UpdateSshPublicKeyRequest) Reset()

func (*UpdateSshPublicKeyRequest) String

func (m *UpdateSshPublicKeyRequest) String() string

func (*UpdateSshPublicKeyRequest) XXX_DiscardUnknown

func (m *UpdateSshPublicKeyRequest) XXX_DiscardUnknown()

func (*UpdateSshPublicKeyRequest) XXX_Marshal

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

func (*UpdateSshPublicKeyRequest) XXX_Merge

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

func (*UpdateSshPublicKeyRequest) XXX_Size

func (m *UpdateSshPublicKeyRequest) XXX_Size() int

func (*UpdateSshPublicKeyRequest) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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