provider

package
v0.0.0-...-665dfdd Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateGroupOptions

type CreateGroupOptions struct {
	Description string
}

type CreatePipelineOptions

type CreatePipelineOptions struct {
}

type DeleteGroupOptions

type DeleteGroupOptions struct {
}

type DeletePipelineOptions

type DeletePipelineOptions struct {
}

type Group

type Group struct {
	ID string

	Parent string

	Kind string
	Name string
}

type Pipeline

type Pipeline struct {
	ID string

	Kind string
	Name string
}

type Provider

type Provider interface {
	CreateUser(ctx context.Context, name, username, password, email string, identities []UserIdentity) (*User, error)

	CreateGroup(ctx context.Context, name string, options *CreateGroupOptions) (*Group, error)
	DeleteGroup(ctx context.Context, groupID string, options *DeleteGroupOptions) error

	CreatePipeline(ctx context.Context, groupID, name string, options *CreatePipelineOptions) (*Pipeline, error)
	DeletePipeline(ctx context.Context, pipelineID string, options *DeletePipelineOptions) error
}

type User

type User struct {
	ID string

	Username string
	Password string

	Identities []UserIdentity
}

type UserIdentity

type UserIdentity struct {
	Provider string
	Subject  string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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