service

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSettingsBundles added in v0.2.0

func RegisterSettingsBundles(l *olog.Logger)

RegisterSettingsBundles pushes the settings bundle definitions for this extension to the ocis-settings service.

Types

type Option added in v0.2.0

type Option func(o *Options)

Option defines a single option function.

func Config added in v0.2.0

func Config(val *config.Config) Option

Config provides a function to set the config option.

func Logger added in v0.2.0

func Logger(val log.Logger) Option

Logger provides a function to set the logger option.

type Options added in v0.2.0

type Options struct {
	Logger log.Logger
	Config *config.Config
}

Options defines the available options for this package.

type Service

type Service struct {
	Config *config.Config

	Client mclient.Client
	// contains filtered or unexported fields
}

Service implements the AccountsServiceHandler interface

func New

func New(opts ...Option) (s *Service, err error)

New returns a new instance of Service

func (Service) AddMember added in v0.2.0

func (s Service) AddMember(c context.Context, in *proto.AddMemberRequest, out *proto.Group) (err error)

AddMember implements the GroupsServiceHandler interface

func (Service) CreateAccount added in v0.2.0

func (s Service) CreateAccount(c context.Context, in *proto.CreateAccountRequest, out *proto.Account) (err error)

CreateAccount implements the AccountsServiceHandler interface

func (Service) CreateGroup added in v0.2.0

func (s Service) CreateGroup(c context.Context, in *proto.CreateGroupRequest, out *proto.Group) (err error)

CreateGroup implements the GroupsServiceHandler interface

func (Service) DeleteAccount added in v0.2.0

func (s Service) DeleteAccount(c context.Context, in *proto.DeleteAccountRequest, out *empty.Empty) (err error)

DeleteAccount implements the AccountsServiceHandler interface

func (Service) DeleteGroup added in v0.2.0

func (s Service) DeleteGroup(c context.Context, in *proto.DeleteGroupRequest, out *empty.Empty) (err error)

DeleteGroup implements the GroupsServiceHandler interface

func (Service) GetAccount added in v0.2.0

func (s Service) GetAccount(c context.Context, in *proto.GetAccountRequest, out *proto.Account) (err error)

GetAccount implements the AccountsServiceHandler interface

func (Service) GetGroup added in v0.2.0

func (s Service) GetGroup(c context.Context, in *proto.GetGroupRequest, out *proto.Group) (err error)

GetGroup implements the GroupsServiceHandler interface

func (Service) ListAccounts added in v0.2.0

func (s Service) ListAccounts(ctx context.Context, in *proto.ListAccountsRequest, out *proto.ListAccountsResponse) (err error)

ListAccounts implements the AccountsServiceHandler interface the query contains account properties

func (Service) ListGroups added in v0.2.0

func (s Service) ListGroups(c context.Context, in *proto.ListGroupsRequest, out *proto.ListGroupsResponse) (err error)

ListGroups implements the GroupsServiceHandler interface

func (Service) ListMembers added in v0.2.0

func (s Service) ListMembers(c context.Context, in *proto.ListMembersRequest, out *proto.ListMembersResponse) (err error)

ListMembers implements the GroupsServiceHandler interface

func (Service) RemoveMember added in v0.2.0

func (s Service) RemoveMember(c context.Context, in *proto.RemoveMemberRequest, out *proto.Group) (err error)

RemoveMember implements the GroupsServiceHandler interface

func (Service) UpdateAccount added in v0.2.0

func (s Service) UpdateAccount(c context.Context, in *proto.UpdateAccountRequest, out *proto.Account) (err error)

UpdateAccount implements the AccountsServiceHandler interface read only fields are ignored TODO how can we unset specific values? using the update mask

func (Service) UpdateGroup added in v0.2.0

func (s Service) UpdateGroup(c context.Context, in *proto.UpdateGroupRequest, out *proto.Group) (err error)

UpdateGroup implements the GroupsServiceHandler interface

Jump to

Keyboard shortcuts

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