types

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package types provides common types for data export and import.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Org

type Org struct {
	Name string `json:"name"`

	Projects []*Project `json:"project,omitempty"`
	Secrets  []*Secret  `json:"secrets,omitempty"`
}

Org defines an organization.

type Pipeline

type Pipeline struct {
	Name   string `json:"name"`
	Repo   string `json:"repo,omitempty"`
	Branch string `json:"branch,omitempty"`
	Type   string `json:"type"` // github, gitlab, bitbucket
	Yaml   string `json:"yaml"`
}

Pipeline defines a pipeline.

type Project

type Project struct {
	Name   string `json:"name"`
	Desc   string `json:"desc,omitempty"`
	Repo   string `json:"repo,omitempty"`
	Branch string `json:"branch,omitempty"`
	Type   string `json:"type"` // github, gitlab, bitbucket
	Yaml   []byte `json:"yaml"`

	Secrets   []*Secret   `json:"secrets,omitempty"`
	Pipelines []*Pipeline `json:"pipelines,omitempty"`
}

Project defines a project.

type Secret

type Secret struct {
	Name  string `json:"name"`
	Desc  string `json:"desc,omitempty"`
	Value string `json:"value,omitempty"`
}

Secret defines a secret.

Jump to

Keyboard shortcuts

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