syncer

package
v0.0.0-...-cdc24ad Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
)

Functions

This section is empty.

Types

type Syncer

type Syncer struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *config.Config) (*Syncer, error)

func (*Syncer) CreateGroupAccessToken

func (s *Syncer) CreateGroupAccessToken(ctx context.Context, gid1 int, name string) (*gitlab.GroupAccessToken, error)

func (*Syncer) CreatePersonalAccessToken

func (s *Syncer) CreatePersonalAccessToken(ctx context.Context, uid1 int, name string) (*gitlab.PersonalAccessToken, error)

func (*Syncer) GroupAccessToken

func (s *Syncer) GroupAccessToken(ctx context.Context, gid int, name string) (*gitlab.GroupAccessToken, error)

func (*Syncer) GroupAccessTokens

func (s *Syncer) GroupAccessTokens(ctx context.Context, gid int) ([]gitlab.GroupAccessToken, error)

func (*Syncer) GroupReference

func (s *Syncer) GroupReference(group *gitlab.Group) string

func (*Syncer) PersonalAccessToken

func (s *Syncer) PersonalAccessToken(ctx context.Context, gid int, name string) (*gitlab.PersonalAccessToken, error)

func (*Syncer) PersonalAccessTokens

func (s *Syncer) PersonalAccessTokens(ctx context.Context, uid1 int) ([]gitlab.PersonalAccessToken, error)

func (*Syncer) Sync

func (s *Syncer) Sync(ctx context.Context) error

func (*Syncer) UserReference

func (s *Syncer) UserReference(user *gitlab.User) string

Jump to

Keyboard shortcuts

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