api

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package api provides APIs for syncing a chart repository

Index

Constants

This section is empty.

Variables

View Source
var (
	Kind_name = map[int32]string{
		0: "UNKNOWN",
		1: "HELM",
		2: "CHARTMUSEUM",
		3: "HARBOR",
	}
	Kind_value = map[string]int32{
		"UNKNOWN":     0,
		"HELM":        1,
		"CHARTMUSEUM": 2,
		"HARBOR":      3,
	}
)

Enum value maps for Kind.

View Source
var File_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

Auth contains credentials to login to a chart repository

func (*Auth) Descriptor deprecated

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

Deprecated: Use Auth.ProtoReflect.Descriptor instead.

func (*Auth) GetPassword

func (x *Auth) GetPassword() string

func (*Auth) GetUsername

func (x *Auth) GetUsername() string

func (*Auth) ProtoMessage

func (*Auth) ProtoMessage()

func (*Auth) ProtoReflect

func (x *Auth) ProtoReflect() protoreflect.Message

func (*Auth) Reset

func (x *Auth) Reset()

func (*Auth) String

func (x *Auth) String() string

type Config

type Config struct {
	Source *SourceRepo `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Target *TargetRepo `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

Config file structure

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetSource

func (x *Config) GetSource() *SourceRepo

func (*Config) GetTarget

func (x *Config) GetTarget() *TargetRepo

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

func (*Config) Validate

func (c *Config) Validate() error

Validate validates the config file is correct

type Kind

type Kind int32
const (
	Kind_UNKNOWN     Kind = 0
	Kind_HELM        Kind = 1
	Kind_CHARTMUSEUM Kind = 2
	Kind_HARBOR      Kind = 3
)

func (Kind) Descriptor

func (Kind) Descriptor() protoreflect.EnumDescriptor

func (Kind) Enum

func (x Kind) Enum() *Kind

func (Kind) EnumDescriptor deprecated

func (Kind) EnumDescriptor() ([]byte, []int)

Deprecated: Use Kind.Descriptor instead.

func (Kind) Number

func (x Kind) Number() protoreflect.EnumNumber

func (Kind) String

func (x Kind) String() string

func (Kind) Type

func (Kind) Type() protoreflect.EnumType

type Repo

type Repo struct {
	Url  string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Kind Kind   `protobuf:"varint,2,opt,name=kind,proto3,enum=api.Kind" json:"kind,omitempty"`
	Auth *Auth  `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty"`
	// contains filtered or unexported fields
}

Generic repo representation

func (*Repo) Descriptor deprecated

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

Deprecated: Use Repo.ProtoReflect.Descriptor instead.

func (*Repo) GetAuth

func (x *Repo) GetAuth() *Auth

func (*Repo) GetKind

func (x *Repo) GetKind() Kind

func (*Repo) GetUrl

func (x *Repo) GetUrl() string

func (*Repo) ProtoMessage

func (*Repo) ProtoMessage()

func (*Repo) ProtoReflect

func (x *Repo) ProtoReflect() protoreflect.Message

func (*Repo) Reset

func (x *Repo) Reset()

func (*Repo) String

func (x *Repo) String() string

type SourceRepo

type SourceRepo struct {
	Repo *Repo `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	// contains filtered or unexported fields
}

SourceRepo contains the required information of the source chart repository

func (*SourceRepo) Descriptor deprecated

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

Deprecated: Use SourceRepo.ProtoReflect.Descriptor instead.

func (*SourceRepo) GetRepo

func (x *SourceRepo) GetRepo() *Repo

func (*SourceRepo) ProtoMessage

func (*SourceRepo) ProtoMessage()

func (*SourceRepo) ProtoReflect

func (x *SourceRepo) ProtoReflect() protoreflect.Message

func (*SourceRepo) Reset

func (x *SourceRepo) Reset()

func (*SourceRepo) String

func (x *SourceRepo) String() string

type TargetRepo

type TargetRepo struct {
	Repo                *Repo  `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	ContainerRegistry   string `protobuf:"bytes,2,opt,name=container_registry,json=containerRegistry,proto3" json:"container_registry,omitempty"`
	ContainerRepository string `protobuf:"bytes,3,opt,name=container_repository,json=containerRepository,proto3" json:"container_repository,omitempty"`
	// contains filtered or unexported fields
}

TargetRepo contains the required information of the target chart repository

func (*TargetRepo) Descriptor deprecated

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

Deprecated: Use TargetRepo.ProtoReflect.Descriptor instead.

func (*TargetRepo) GetContainerRegistry

func (x *TargetRepo) GetContainerRegistry() string

func (*TargetRepo) GetContainerRepository

func (x *TargetRepo) GetContainerRepository() string

func (*TargetRepo) GetRepo

func (x *TargetRepo) GetRepo() *Repo

func (*TargetRepo) ProtoMessage

func (*TargetRepo) ProtoMessage()

func (*TargetRepo) ProtoReflect

func (x *TargetRepo) ProtoReflect() protoreflect.Message

func (*TargetRepo) Reset

func (x *TargetRepo) Reset()

func (*TargetRepo) String

func (x *TargetRepo) String() string

Jump to

Keyboard shortcuts

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