models

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApplicationConfigBuildTypeRuntimeBuildpack  string = "runtime-buildpack"
	ApplicationConfigBuildTypeRuntimeCMD        string = "runtime-cmd"
	ApplicationConfigBuildTypeRuntimeDockerfile string = "runtime-dockerfile"
	ApplicationConfigBuildTypeStaticBuildpack   string = "static-buildpack"
	ApplicationConfigBuildTypeStaticCMD         string = "static-cmd"
	ApplicationConfigBuildTypeStaticDockerfile  string = "static-dockerfile"
)

Enum values for ApplicationConfigBuildType

View Source
const (
	ApplicationsDeployTypeRuntime string = "runtime"
	ApplicationsDeployTypeStatic  string = "static"
)

Enum values for ApplicationsDeployType

View Source
const (
	ApplicationsContainerMissing  string = "missing"
	ApplicationsContainerStarting string = "starting"
	ApplicationsContainerRunning  string = "running"
	ApplicationsContainerExited   string = "exited"
	ApplicationsContainerErrored  string = "errored"
	ApplicationsContainerUnknown  string = "unknown"
)

Enum values for ApplicationsContainer

View Source
const (
	BuildsStatusBuilding  string = "building"
	BuildsStatusSucceeded string = "succeeded"
	BuildsStatusFailed    string = "failed"
	BuildsStatusCanceled  string = "canceled"
	BuildsStatusQueued    string = "queued"
	BuildsStatusSkipped   string = "skipped"
)

Enum values for BuildsStatus

View Source
const (
	PortPublicationsProtocolTCP string = "tcp"
	PortPublicationsProtocolUDP string = "udp"
)

Enum values for PortPublicationsProtocol

View Source
const (
	RepositoryAuthMethodBasic string = "basic"
	RepositoryAuthMethodSSH   string = "ssh"
)

Enum values for RepositoryAuthMethod

View Source
const (
	WebsitesAuthenticationOff  string = "off"
	WebsitesAuthenticationSoft string = "soft"
	WebsitesAuthenticationHard string = "hard"
)

Enum values for WebsitesAuthentication

Variables

View Source
var ApplicationColumns = struct {
	ID            string
	Name          string
	RepositoryID  string
	RefName       string
	DeployType    string
	Running       string
	Container     string
	CurrentCommit string
	WantCommit    string
	CreatedAt     string
	UpdatedAt     string
}{
	ID:            "id",
	Name:          "name",
	RepositoryID:  "repository_id",
	RefName:       "ref_name",
	DeployType:    "deploy_type",
	Running:       "running",
	Container:     "container",
	CurrentCommit: "current_commit",
	WantCommit:    "want_commit",
	CreatedAt:     "created_at",
	UpdatedAt:     "updated_at",
}
View Source
var ApplicationConfigColumns = struct {
	ApplicationID  string
	UseMariadb     string
	UseMongodb     string
	BuildType      string
	BaseImage      string
	BuildCMD       string
	ArtifactPath   string
	Spa            string
	DockerfileName string
	Context        string
	Entrypoint     string
	Command        string
}{
	ApplicationID:  "application_id",
	UseMariadb:     "use_mariadb",
	UseMongodb:     "use_mongodb",
	BuildType:      "build_type",
	BaseImage:      "base_image",
	BuildCMD:       "build_cmd",
	ArtifactPath:   "artifact_path",
	Spa:            "spa",
	DockerfileName: "dockerfile_name",
	Context:        "context",
	Entrypoint:     "entrypoint",
	Command:        "command",
}
View Source
var ApplicationConfigRels = struct {
	Application string
}{
	Application: "Application",
}

ApplicationConfigRels is where relationship names are stored.

View Source
var ApplicationConfigTableColumns = struct {
	ApplicationID  string
	UseMariadb     string
	UseMongodb     string
	BuildType      string
	BaseImage      string
	BuildCMD       string
	ArtifactPath   string
	Spa            string
	DockerfileName string
	Context        string
	Entrypoint     string
	Command        string
}{
	ApplicationID:  "application_config.application_id",
	UseMariadb:     "application_config.use_mariadb",
	UseMongodb:     "application_config.use_mongodb",
	BuildType:      "application_config.build_type",
	BaseImage:      "application_config.base_image",
	BuildCMD:       "application_config.build_cmd",
	ArtifactPath:   "application_config.artifact_path",
	Spa:            "application_config.spa",
	DockerfileName: "application_config.dockerfile_name",
	Context:        "application_config.context",
	Entrypoint:     "application_config.entrypoint",
	Command:        "application_config.command",
}
View Source
var ApplicationConfigWhere = struct {
	ApplicationID  whereHelperstring
	UseMariadb     whereHelperbool
	UseMongodb     whereHelperbool
	BuildType      whereHelperstring
	BaseImage      whereHelperstring
	BuildCMD       whereHelperstring
	ArtifactPath   whereHelperstring
	Spa            whereHelperbool
	DockerfileName whereHelperstring
	Context        whereHelperstring
	Entrypoint     whereHelperstring
	Command        whereHelperstring
}{
	ApplicationID:  whereHelperstring{/* contains filtered or unexported fields */},
	UseMariadb:     whereHelperbool{/* contains filtered or unexported fields */},
	UseMongodb:     whereHelperbool{/* contains filtered or unexported fields */},
	BuildType:      whereHelperstring{/* contains filtered or unexported fields */},
	BaseImage:      whereHelperstring{/* contains filtered or unexported fields */},
	BuildCMD:       whereHelperstring{/* contains filtered or unexported fields */},
	ArtifactPath:   whereHelperstring{/* contains filtered or unexported fields */},
	Spa:            whereHelperbool{/* contains filtered or unexported fields */},
	DockerfileName: whereHelperstring{/* contains filtered or unexported fields */},
	Context:        whereHelperstring{/* contains filtered or unexported fields */},
	Entrypoint:     whereHelperstring{/* contains filtered or unexported fields */},
	Command:        whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var ApplicationRels = struct {
	Repository        string
	ApplicationConfig string
	Users             string
	Builds            string
	Environments      string
	PortPublications  string
	Websites          string
}{
	Repository:        "Repository",
	ApplicationConfig: "ApplicationConfig",
	Users:             "Users",
	Builds:            "Builds",
	Environments:      "Environments",
	PortPublications:  "PortPublications",
	Websites:          "Websites",
}

ApplicationRels is where relationship names are stored.

View Source
var ApplicationTableColumns = struct {
	ID            string
	Name          string
	RepositoryID  string
	RefName       string
	DeployType    string
	Running       string
	Container     string
	CurrentCommit string
	WantCommit    string
	CreatedAt     string
	UpdatedAt     string
}{
	ID:            "applications.id",
	Name:          "applications.name",
	RepositoryID:  "applications.repository_id",
	RefName:       "applications.ref_name",
	DeployType:    "applications.deploy_type",
	Running:       "applications.running",
	Container:     "applications.container",
	CurrentCommit: "applications.current_commit",
	WantCommit:    "applications.want_commit",
	CreatedAt:     "applications.created_at",
	UpdatedAt:     "applications.updated_at",
}
View Source
var ApplicationWhere = struct {
	ID            whereHelperstring
	Name          whereHelperstring
	RepositoryID  whereHelperstring
	RefName       whereHelperstring
	DeployType    whereHelperstring
	Running       whereHelperbool
	Container     whereHelperstring
	CurrentCommit whereHelperstring
	WantCommit    whereHelperstring
	CreatedAt     whereHelpertime_Time
	UpdatedAt     whereHelpertime_Time
}{
	ID:            whereHelperstring{/* contains filtered or unexported fields */},
	Name:          whereHelperstring{/* contains filtered or unexported fields */},
	RepositoryID:  whereHelperstring{/* contains filtered or unexported fields */},
	RefName:       whereHelperstring{/* contains filtered or unexported fields */},
	DeployType:    whereHelperstring{/* contains filtered or unexported fields */},
	Running:       whereHelperbool{/* contains filtered or unexported fields */},
	Container:     whereHelperstring{/* contains filtered or unexported fields */},
	CurrentCommit: whereHelperstring{/* contains filtered or unexported fields */},
	WantCommit:    whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var ArtifactColumns = struct {
	ID        string
	Name      string
	Size      string
	CreatedAt string
	DeletedAt string
	BuildID   string
}{
	ID:        "id",
	Name:      "name",
	Size:      "size",
	CreatedAt: "created_at",
	DeletedAt: "deleted_at",
	BuildID:   "build_id",
}
View Source
var ArtifactRels = struct {
	Build string
}{
	Build: "Build",
}

ArtifactRels is where relationship names are stored.

View Source
var ArtifactTableColumns = struct {
	ID        string
	Name      string
	Size      string
	CreatedAt string
	DeletedAt string
	BuildID   string
}{
	ID:        "artifacts.id",
	Name:      "artifacts.name",
	Size:      "artifacts.size",
	CreatedAt: "artifacts.created_at",
	DeletedAt: "artifacts.deleted_at",
	BuildID:   "artifacts.build_id",
}
View Source
var ArtifactWhere = struct {
	ID        whereHelperstring
	Name      whereHelperstring
	Size      whereHelperint64
	CreatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
	BuildID   whereHelperstring
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	Size:      whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	BuildID:   whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var BuildColumns = struct {
	ID            string
	Commit        string
	Status        string
	QueuedAt      string
	StartedAt     string
	UpdatedAt     string
	FinishedAt    string
	Retriable     string
	ApplicationID string
}{
	ID:            "id",
	Commit:        "commit",
	Status:        "status",
	QueuedAt:      "queued_at",
	StartedAt:     "started_at",
	UpdatedAt:     "updated_at",
	FinishedAt:    "finished_at",
	Retriable:     "retriable",
	ApplicationID: "application_id",
}
View Source
var BuildRels = struct {
	Application string
	Artifacts   string
}{
	Application: "Application",
	Artifacts:   "Artifacts",
}

BuildRels is where relationship names are stored.

View Source
var BuildTableColumns = struct {
	ID            string
	Commit        string
	Status        string
	QueuedAt      string
	StartedAt     string
	UpdatedAt     string
	FinishedAt    string
	Retriable     string
	ApplicationID string
}{
	ID:            "builds.id",
	Commit:        "builds.commit",
	Status:        "builds.status",
	QueuedAt:      "builds.queued_at",
	StartedAt:     "builds.started_at",
	UpdatedAt:     "builds.updated_at",
	FinishedAt:    "builds.finished_at",
	Retriable:     "builds.retriable",
	ApplicationID: "builds.application_id",
}
View Source
var BuildWhere = struct {
	ID            whereHelperstring
	Commit        whereHelperstring
	Status        whereHelperstring
	QueuedAt      whereHelpertime_Time
	StartedAt     whereHelpernull_Time
	UpdatedAt     whereHelpernull_Time
	FinishedAt    whereHelpernull_Time
	Retriable     whereHelperbool
	ApplicationID whereHelperstring
}{
	ID:            whereHelperstring{/* contains filtered or unexported fields */},
	Commit:        whereHelperstring{/* contains filtered or unexported fields */},
	Status:        whereHelperstring{/* contains filtered or unexported fields */},
	QueuedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	StartedAt:     whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:     whereHelpernull_Time{/* contains filtered or unexported fields */},
	FinishedAt:    whereHelpernull_Time{/* contains filtered or unexported fields */},
	Retriable:     whereHelperbool{/* contains filtered or unexported fields */},
	ApplicationID: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var EnvironmentColumns = struct {
	ApplicationID string
	Key           string
	Value         string
	System        string
}{
	ApplicationID: "application_id",
	Key:           "key",
	Value:         "value",
	System:        "system",
}
View Source
var EnvironmentRels = struct {
	Application string
}{
	Application: "Application",
}

EnvironmentRels is where relationship names are stored.

View Source
var EnvironmentTableColumns = struct {
	ApplicationID string
	Key           string
	Value         string
	System        string
}{
	ApplicationID: "environments.application_id",
	Key:           "environments.key",
	Value:         "environments.value",
	System:        "environments.system",
}
View Source
var EnvironmentWhere = struct {
	ApplicationID whereHelperstring
	Key           whereHelperstring
	Value         whereHelperstring
	System        whereHelperbool
}{
	ApplicationID: whereHelperstring{/* contains filtered or unexported fields */},
	Key:           whereHelperstring{/* contains filtered or unexported fields */},
	Value:         whereHelperstring{/* contains filtered or unexported fields */},
	System:        whereHelperbool{/* contains filtered or unexported fields */},
}
View Source
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")

ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.

View Source
var PortPublicationColumns = struct {
	ApplicationID   string
	InternetPort    string
	ApplicationPort string
	Protocol        string
}{
	ApplicationID:   "application_id",
	InternetPort:    "internet_port",
	ApplicationPort: "application_port",
	Protocol:        "protocol",
}
View Source
var PortPublicationRels = struct {
	Application string
}{
	Application: "Application",
}

PortPublicationRels is where relationship names are stored.

View Source
var PortPublicationTableColumns = struct {
	ApplicationID   string
	InternetPort    string
	ApplicationPort string
	Protocol        string
}{
	ApplicationID:   "port_publications.application_id",
	InternetPort:    "port_publications.internet_port",
	ApplicationPort: "port_publications.application_port",
	Protocol:        "port_publications.protocol",
}
View Source
var PortPublicationWhere = struct {
	ApplicationID   whereHelperstring
	InternetPort    whereHelperint
	ApplicationPort whereHelperint
	Protocol        whereHelperstring
}{
	ApplicationID:   whereHelperstring{/* contains filtered or unexported fields */},
	InternetPort:    whereHelperint{/* contains filtered or unexported fields */},
	ApplicationPort: whereHelperint{/* contains filtered or unexported fields */},
	Protocol:        whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var RepositoryAuthColumns = struct {
	RepositoryID string
	Method       string
	Username     string
	Password     string
	SSHKey       string
}{
	RepositoryID: "repository_id",
	Method:       "method",
	Username:     "username",
	Password:     "password",
	SSHKey:       "ssh_key",
}
View Source
var RepositoryAuthRels = struct {
	Repository string
}{
	Repository: "Repository",
}

RepositoryAuthRels is where relationship names are stored.

View Source
var RepositoryAuthTableColumns = struct {
	RepositoryID string
	Method       string
	Username     string
	Password     string
	SSHKey       string
}{
	RepositoryID: "repository_auth.repository_id",
	Method:       "repository_auth.method",
	Username:     "repository_auth.username",
	Password:     "repository_auth.password",
	SSHKey:       "repository_auth.ssh_key",
}
View Source
var RepositoryAuthWhere = struct {
	RepositoryID whereHelperstring
	Method       whereHelperstring
	Username     whereHelperstring
	Password     whereHelperstring
	SSHKey       whereHelperstring
}{
	RepositoryID: whereHelperstring{/* contains filtered or unexported fields */},
	Method:       whereHelperstring{/* contains filtered or unexported fields */},
	Username:     whereHelperstring{/* contains filtered or unexported fields */},
	Password:     whereHelperstring{/* contains filtered or unexported fields */},
	SSHKey:       whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var RepositoryColumns = struct {
	ID   string
	Name string
	URL  string
}{
	ID:   "id",
	Name: "name",
	URL:  "url",
}
View Source
var RepositoryRels = struct {
	RepositoryAuth string
	Applications   string
	Users          string
}{
	RepositoryAuth: "RepositoryAuth",
	Applications:   "Applications",
	Users:          "Users",
}

RepositoryRels is where relationship names are stored.

View Source
var RepositoryTableColumns = struct {
	ID   string
	Name string
	URL  string
}{
	ID:   "repositories.id",
	Name: "repositories.name",
	URL:  "repositories.url",
}
View Source
var RepositoryWhere = struct {
	ID   whereHelperstring
	Name whereHelperstring
	URL  whereHelperstring
}{
	ID:   whereHelperstring{/* contains filtered or unexported fields */},
	Name: whereHelperstring{/* contains filtered or unexported fields */},
	URL:  whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	ApplicationConfig string
	ApplicationOwners string
	Applications      string
	Artifacts         string
	Builds            string
	Environments      string
	PortPublications  string
	Repositories      string
	RepositoryAuth    string
	RepositoryOwners  string
	UserKeys          string
	Users             string
	Websites          string
}{
	ApplicationConfig: "application_config",
	ApplicationOwners: "application_owners",
	Applications:      "applications",
	Artifacts:         "artifacts",
	Builds:            "builds",
	Environments:      "environments",
	PortPublications:  "port_publications",
	Repositories:      "repositories",
	RepositoryAuth:    "repository_auth",
	RepositoryOwners:  "repository_owners",
	UserKeys:          "user_keys",
	Users:             "users",
	Websites:          "websites",
}
View Source
var UserColumns = struct {
	ID    string
	Name  string
	Admin string
}{
	ID:    "id",
	Name:  "name",
	Admin: "admin",
}
View Source
var UserKeyColumns = struct {
	ID        string
	UserID    string
	PublicKey string
}{
	ID:        "id",
	UserID:    "user_id",
	PublicKey: "public_key",
}
View Source
var UserKeyRels = struct {
	User string
}{
	User: "User",
}

UserKeyRels is where relationship names are stored.

View Source
var UserKeyTableColumns = struct {
	ID        string
	UserID    string
	PublicKey string
}{
	ID:        "user_keys.id",
	UserID:    "user_keys.user_id",
	PublicKey: "user_keys.public_key",
}
View Source
var UserKeyWhere = struct {
	ID        whereHelperstring
	UserID    whereHelperstring
	PublicKey whereHelperstring
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	UserID:    whereHelperstring{/* contains filtered or unexported fields */},
	PublicKey: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var UserRels = struct {
	Applications string
	Repositories string
	UserKeys     string
}{
	Applications: "Applications",
	Repositories: "Repositories",
	UserKeys:     "UserKeys",
}

UserRels is where relationship names are stored.

View Source
var UserTableColumns = struct {
	ID    string
	Name  string
	Admin string
}{
	ID:    "users.id",
	Name:  "users.name",
	Admin: "users.admin",
}
View Source
var UserWhere = struct {
	ID    whereHelperstring
	Name  whereHelperstring
	Admin whereHelperbool
}{
	ID:    whereHelperstring{/* contains filtered or unexported fields */},
	Name:  whereHelperstring{/* contains filtered or unexported fields */},
	Admin: whereHelperbool{/* contains filtered or unexported fields */},
}
View Source
var ViewNames = struct {
}{}
View Source
var WebsiteColumns = struct {
	ID             string
	FQDN           string
	PathPrefix     string
	StripPrefix    string
	HTTPS          string
	H2C            string
	HTTPPort       string
	Authentication string
	ApplicationID  string
}{
	ID:             "id",
	FQDN:           "fqdn",
	PathPrefix:     "path_prefix",
	StripPrefix:    "strip_prefix",
	HTTPS:          "https",
	H2C:            "h2c",
	HTTPPort:       "http_port",
	Authentication: "authentication",
	ApplicationID:  "application_id",
}
View Source
var WebsiteRels = struct {
	Application string
}{
	Application: "Application",
}

WebsiteRels is where relationship names are stored.

View Source
var WebsiteTableColumns = struct {
	ID             string
	FQDN           string
	PathPrefix     string
	StripPrefix    string
	HTTPS          string
	H2C            string
	HTTPPort       string
	Authentication string
	ApplicationID  string
}{
	ID:             "websites.id",
	FQDN:           "websites.fqdn",
	PathPrefix:     "websites.path_prefix",
	StripPrefix:    "websites.strip_prefix",
	HTTPS:          "websites.https",
	H2C:            "websites.h2c",
	HTTPPort:       "websites.http_port",
	Authentication: "websites.authentication",
	ApplicationID:  "websites.application_id",
}
View Source
var WebsiteWhere = struct {
	ID             whereHelperstring
	FQDN           whereHelperstring
	PathPrefix     whereHelperstring
	StripPrefix    whereHelperbool
	HTTPS          whereHelperbool
	H2C            whereHelperbool
	HTTPPort       whereHelperint
	Authentication whereHelperstring
	ApplicationID  whereHelperstring
}{
	ID:             whereHelperstring{/* contains filtered or unexported fields */},
	FQDN:           whereHelperstring{/* contains filtered or unexported fields */},
	PathPrefix:     whereHelperstring{/* contains filtered or unexported fields */},
	StripPrefix:    whereHelperbool{/* contains filtered or unexported fields */},
	HTTPS:          whereHelperbool{/* contains filtered or unexported fields */},
	H2C:            whereHelperbool{/* contains filtered or unexported fields */},
	HTTPPort:       whereHelperint{/* contains filtered or unexported fields */},
	Authentication: whereHelperstring{/* contains filtered or unexported fields */},
	ApplicationID:  whereHelperstring{/* contains filtered or unexported fields */},
}

Functions

func AddApplicationConfigHook

func AddApplicationConfigHook(hookPoint boil.HookPoint, applicationConfigHook ApplicationConfigHook)

AddApplicationConfigHook registers your hook function for all future operations.

func AddApplicationHook

func AddApplicationHook(hookPoint boil.HookPoint, applicationHook ApplicationHook)

AddApplicationHook registers your hook function for all future operations.

func AddArtifactHook

func AddArtifactHook(hookPoint boil.HookPoint, artifactHook ArtifactHook)

AddArtifactHook registers your hook function for all future operations.

func AddBuildHook

func AddBuildHook(hookPoint boil.HookPoint, buildHook BuildHook)

AddBuildHook registers your hook function for all future operations.

func AddEnvironmentHook

func AddEnvironmentHook(hookPoint boil.HookPoint, environmentHook EnvironmentHook)

AddEnvironmentHook registers your hook function for all future operations.

func AddPortPublicationHook added in v0.3.0

func AddPortPublicationHook(hookPoint boil.HookPoint, portPublicationHook PortPublicationHook)

AddPortPublicationHook registers your hook function for all future operations.

func AddRepositoryAuthHook

func AddRepositoryAuthHook(hookPoint boil.HookPoint, repositoryAuthHook RepositoryAuthHook)

AddRepositoryAuthHook registers your hook function for all future operations.

func AddRepositoryHook

func AddRepositoryHook(hookPoint boil.HookPoint, repositoryHook RepositoryHook)

AddRepositoryHook registers your hook function for all future operations.

func AddUserHook

func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)

AddUserHook registers your hook function for all future operations.

func AddUserKeyHook

func AddUserKeyHook(hookPoint boil.HookPoint, userKeyHook UserKeyHook)

AddUserKeyHook registers your hook function for all future operations.

func AddWebsiteHook

func AddWebsiteHook(hookPoint boil.HookPoint, websiteHook WebsiteHook)

AddWebsiteHook registers your hook function for all future operations.

func AllApplicationConfigBuildType

func AllApplicationConfigBuildType() []string

func AllApplicationsContainer

func AllApplicationsContainer() []string

func AllApplicationsDeployType

func AllApplicationsDeployType() []string

func AllBuildsStatus

func AllBuildsStatus() []string

func AllPortPublicationsProtocol added in v0.3.0

func AllPortPublicationsProtocol() []string

func AllRepositoryAuthMethod

func AllRepositoryAuthMethod() []string

func AllWebsitesAuthentication

func AllWebsitesAuthentication() []string

func ApplicationConfigExists

func ApplicationConfigExists(ctx context.Context, exec boil.ContextExecutor, applicationID string) (bool, error)

ApplicationConfigExists checks if the ApplicationConfig row exists.

func ApplicationConfigs

func ApplicationConfigs(mods ...qm.QueryMod) applicationConfigQuery

ApplicationConfigs retrieves all the records using an executor.

func ApplicationExists

func ApplicationExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

ApplicationExists checks if the Application row exists.

func Applications

func Applications(mods ...qm.QueryMod) applicationQuery

Applications retrieves all the records using an executor.

func ArtifactExists

func ArtifactExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

ArtifactExists checks if the Artifact row exists.

func Artifacts

func Artifacts(mods ...qm.QueryMod) artifactQuery

Artifacts retrieves all the records using an executor.

func BuildExists

func BuildExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

BuildExists checks if the Build row exists.

func Builds

func Builds(mods ...qm.QueryMod) buildQuery

Builds retrieves all the records using an executor.

func EnvironmentExists

func EnvironmentExists(ctx context.Context, exec boil.ContextExecutor, applicationID string, key string) (bool, error)

EnvironmentExists checks if the Environment row exists.

func Environments

func Environments(mods ...qm.QueryMod) environmentQuery

Environments retrieves all the records using an executor.

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func PortPublicationExists added in v0.3.0

func PortPublicationExists(ctx context.Context, exec boil.ContextExecutor, internetPort int, protocol string) (bool, error)

PortPublicationExists checks if the PortPublication row exists.

func PortPublications added in v0.3.0

func PortPublications(mods ...qm.QueryMod) portPublicationQuery

PortPublications retrieves all the records using an executor.

func Repositories

func Repositories(mods ...qm.QueryMod) repositoryQuery

Repositories retrieves all the records using an executor.

func RepositoryAuthExists

func RepositoryAuthExists(ctx context.Context, exec boil.ContextExecutor, repositoryID string) (bool, error)

RepositoryAuthExists checks if the RepositoryAuth row exists.

func RepositoryAuths

func RepositoryAuths(mods ...qm.QueryMod) repositoryAuthQuery

RepositoryAuths retrieves all the records using an executor.

func RepositoryExists

func RepositoryExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

RepositoryExists checks if the Repository row exists.

func UserExists

func UserExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

UserExists checks if the User row exists.

func UserKeyExists

func UserKeyExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

UserKeyExists checks if the UserKey row exists.

func UserKeys

func UserKeys(mods ...qm.QueryMod) userKeyQuery

UserKeys retrieves all the records using an executor.

func Users

func Users(mods ...qm.QueryMod) userQuery

Users retrieves all the records using an executor.

func WebsiteExists

func WebsiteExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

WebsiteExists checks if the Website row exists.

func Websites

func Websites(mods ...qm.QueryMod) websiteQuery

Websites retrieves all the records using an executor.

Types

type Application

type Application struct {
	ID string `boil:"id" json:"id" toml:"id" yaml:"id"`
	// アプリケーション名
	Name string `boil:"name" json:"name" toml:"name" yaml:"name"`
	// リポジトリID
	RepositoryID string `boil:"repository_id" json:"repository_id" toml:"repository_id" yaml:"repository_id"`
	// Gitブランチ・タグ名
	RefName string `boil:"ref_name" json:"ref_name" toml:"ref_name" yaml:"ref_name"`
	// デプロイタイプ
	DeployType string `boil:"deploy_type" json:"deploy_type" toml:"deploy_type" yaml:"deploy_type"`
	// アプリを起動させるか(desired state)
	Running bool `boil:"running" json:"running" toml:"running" yaml:"running"`
	// コンテナの状態(runtime only)
	Container string `boil:"container" json:"container" toml:"container" yaml:"container"`
	// デプロイされたコミット
	CurrentCommit string `boil:"current_commit" json:"current_commit" toml:"current_commit" yaml:"current_commit"`
	// デプロイを待つコミット
	WantCommit string `boil:"want_commit" json:"want_commit" toml:"want_commit" yaml:"want_commit"`
	// 作成日時
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	// 更新日時
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *applicationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L applicationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Application is an object representing the database table.

func FindApplication

func FindApplication(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Application, error)

FindApplication retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Application) AddBuilds

func (o *Application) AddBuilds(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Build) error

AddBuilds adds the given related objects to the existing relationships of the application, optionally inserting them as new records. Appends related to o.R.Builds. Sets related.R.Application appropriately.

func (*Application) AddEnvironments

func (o *Application) AddEnvironments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Environment) error

AddEnvironments adds the given related objects to the existing relationships of the application, optionally inserting them as new records. Appends related to o.R.Environments. Sets related.R.Application appropriately.

func (*Application) AddPortPublications added in v0.3.0

func (o *Application) AddPortPublications(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PortPublication) error

AddPortPublications adds the given related objects to the existing relationships of the application, optionally inserting them as new records. Appends related to o.R.PortPublications. Sets related.R.Application appropriately.

func (*Application) AddUsers

func (o *Application) AddUsers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*User) error

AddUsers adds the given related objects to the existing relationships of the application, optionally inserting them as new records. Appends related to o.R.Users. Sets related.R.Applications appropriately.

func (*Application) AddWebsites

func (o *Application) AddWebsites(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Website) error

AddWebsites adds the given related objects to the existing relationships of the application, optionally inserting them as new records. Appends related to o.R.Websites. Sets related.R.Application appropriately.

func (*Application) ApplicationConfig

func (o *Application) ApplicationConfig(mods ...qm.QueryMod) applicationConfigQuery

ApplicationConfig pointed to by the foreign key.

func (*Application) Builds

func (o *Application) Builds(mods ...qm.QueryMod) buildQuery

Builds retrieves all the build's Builds with an executor.

func (*Application) Delete

func (o *Application) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Application record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Application) Environments

func (o *Application) Environments(mods ...qm.QueryMod) environmentQuery

Environments retrieves all the environment's Environments with an executor.

func (*Application) Exists

func (o *Application) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Application row exists.

func (*Application) Insert

func (o *Application) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Application) PortPublications added in v0.3.0

func (o *Application) PortPublications(mods ...qm.QueryMod) portPublicationQuery

PortPublications retrieves all the port_publication's PortPublications with an executor.

func (*Application) Reload

func (o *Application) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Application) RemoveUsers

func (o *Application) RemoveUsers(ctx context.Context, exec boil.ContextExecutor, related ...*User) error

RemoveUsers relationships from objects passed in. Removes related items from R.Users (uses pointer comparison, removal does not keep order) Sets related.R.Applications.

func (*Application) Repository

func (o *Application) Repository(mods ...qm.QueryMod) repositoryQuery

Repository pointed to by the foreign key.

func (*Application) SetApplicationConfig

func (o *Application) SetApplicationConfig(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ApplicationConfig) error

SetApplicationConfig of the application to the related item. Sets o.R.ApplicationConfig to related. Adds o to related.R.Application.

func (*Application) SetRepository

func (o *Application) SetRepository(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Repository) error

SetRepository of the application to the related item. Sets o.R.Repository to related. Adds o to related.R.Applications.

func (*Application) SetUsers

func (o *Application) SetUsers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*User) error

SetUsers removes all previously related items of the application replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Applications's Users accordingly. Replaces o.R.Users with related. Sets related.R.Applications's Users accordingly.

func (*Application) Update

func (o *Application) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Application. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Application) Upsert

func (o *Application) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*Application) Users

func (o *Application) Users(mods ...qm.QueryMod) userQuery

Users retrieves all the user's Users with an executor.

func (*Application) Websites

func (o *Application) Websites(mods ...qm.QueryMod) websiteQuery

Websites retrieves all the website's Websites with an executor.

type ApplicationConfig

type ApplicationConfig struct {
	ApplicationID string `boil:"application_id" json:"application_id" toml:"application_id" yaml:"application_id"`
	// MariaDBを使用するか
	UseMariadb bool `boil:"use_mariadb" json:"use_mariadb" toml:"use_mariadb" yaml:"use_mariadb"`
	// MongoDBを使用するか
	UseMongodb bool `boil:"use_mongodb" json:"use_mongodb" toml:"use_mongodb" yaml:"use_mongodb"`
	// ビルドタイプ
	BuildType string `boil:"build_type" json:"build_type" toml:"build_type" yaml:"build_type"`
	// ベースイメージの名前
	BaseImage string `boil:"base_image" json:"base_image" toml:"base_image" yaml:"base_image"`
	// ビルドコマンド
	BuildCMD string `boil:"build_cmd" json:"build_cmd" toml:"build_cmd" yaml:"build_cmd"`
	// 静的成果物のパス
	ArtifactPath string `boil:"artifact_path" json:"artifact_path" toml:"artifact_path" yaml:"artifact_path"`
	// 静的成果物をSPAとして配信するか
	Spa bool `boil:"spa" json:"spa" toml:"spa" yaml:"spa"`
	// Dockerfile名
	DockerfileName string `boil:"dockerfile_name" json:"dockerfile_name" toml:"dockerfile_name" yaml:"dockerfile_name"`
	// ビルド時のcontext
	Context string `boil:"context" json:"context" toml:"context" yaml:"context"`
	// Entrypoint(args)
	Entrypoint string `boil:"entrypoint" json:"entrypoint" toml:"entrypoint" yaml:"entrypoint"`
	// Command(args)
	Command string `boil:"command" json:"command" toml:"command" yaml:"command"`

	R *applicationConfigR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L applicationConfigL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ApplicationConfig is an object representing the database table.

func FindApplicationConfig

func FindApplicationConfig(ctx context.Context, exec boil.ContextExecutor, applicationID string, selectCols ...string) (*ApplicationConfig, error)

FindApplicationConfig retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*ApplicationConfig) Application

func (o *ApplicationConfig) Application(mods ...qm.QueryMod) applicationQuery

Application pointed to by the foreign key.

func (*ApplicationConfig) Delete

Delete deletes a single ApplicationConfig record with an executor. Delete will match against the primary key column to find the record to delete.

func (*ApplicationConfig) Exists

Exists checks if the ApplicationConfig row exists.

func (*ApplicationConfig) Insert

func (o *ApplicationConfig) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*ApplicationConfig) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*ApplicationConfig) SetApplication

func (o *ApplicationConfig) SetApplication(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Application) error

SetApplication of the applicationConfig to the related item. Sets o.R.Application to related. Adds o to related.R.ApplicationConfig.

func (*ApplicationConfig) Update

func (o *ApplicationConfig) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the ApplicationConfig. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*ApplicationConfig) Upsert

func (o *ApplicationConfig) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type ApplicationConfigHook

type ApplicationConfigHook func(context.Context, boil.ContextExecutor, *ApplicationConfig) error

ApplicationConfigHook is the signature for custom ApplicationConfig hook methods

type ApplicationConfigSlice

type ApplicationConfigSlice []*ApplicationConfig

ApplicationConfigSlice is an alias for a slice of pointers to ApplicationConfig. This should almost always be used instead of []ApplicationConfig.

func (ApplicationConfigSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*ApplicationConfigSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (ApplicationConfigSlice) UpdateAll

func (o ApplicationConfigSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type ApplicationHook

type ApplicationHook func(context.Context, boil.ContextExecutor, *Application) error

ApplicationHook is the signature for custom Application hook methods

type ApplicationSlice

type ApplicationSlice []*Application

ApplicationSlice is an alias for a slice of pointers to Application. This should almost always be used instead of []Application.

func (ApplicationSlice) DeleteAll

func (o ApplicationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*ApplicationSlice) ReloadAll

func (o *ApplicationSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (ApplicationSlice) UpdateAll

func (o ApplicationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Artifact

type Artifact struct {
	ID string `boil:"id" json:"id" toml:"id" yaml:"id"`
	// 成果物名
	Name string `boil:"name" json:"name" toml:"name" yaml:"name"`
	// 成果物ファイルサイズ
	Size int64 `boil:"size" json:"size" toml:"size" yaml:"size"`
	// 作成日時
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	// 削除日時
	DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	// ビルドID
	BuildID string `boil:"build_id" json:"build_id" toml:"build_id" yaml:"build_id"`

	R *artifactR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L artifactL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Artifact is an object representing the database table.

func FindArtifact

func FindArtifact(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Artifact, error)

FindArtifact retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Artifact) Build

func (o *Artifact) Build(mods ...qm.QueryMod) buildQuery

Build pointed to by the foreign key.

func (*Artifact) Delete

func (o *Artifact) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Artifact record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Artifact) Exists

func (o *Artifact) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Artifact row exists.

func (*Artifact) Insert

func (o *Artifact) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Artifact) Reload

func (o *Artifact) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Artifact) SetBuild

func (o *Artifact) SetBuild(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Build) error

SetBuild of the artifact to the related item. Sets o.R.Build to related. Adds o to related.R.Artifacts.

func (*Artifact) Update

func (o *Artifact) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Artifact. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Artifact) Upsert

func (o *Artifact) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type ArtifactHook

type ArtifactHook func(context.Context, boil.ContextExecutor, *Artifact) error

ArtifactHook is the signature for custom Artifact hook methods

type ArtifactSlice

type ArtifactSlice []*Artifact

ArtifactSlice is an alias for a slice of pointers to Artifact. This should almost always be used instead of []Artifact.

func (ArtifactSlice) DeleteAll

func (o ArtifactSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*ArtifactSlice) ReloadAll

func (o *ArtifactSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (ArtifactSlice) UpdateAll

func (o ArtifactSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Build

type Build struct {
	ID string `boil:"id" json:"id" toml:"id" yaml:"id"`
	// コミットハッシュ
	Commit string `boil:"commit" json:"commit" toml:"commit" yaml:"commit"`
	// ビルドの状態
	Status string `boil:"status" json:"status" toml:"status" yaml:"status"`
	// ビルド追加日時
	QueuedAt time.Time `boil:"queued_at" json:"queued_at" toml:"queued_at" yaml:"queued_at"`
	// ビルド開始日時
	StartedAt null.Time `boil:"started_at" json:"started_at,omitempty" toml:"started_at" yaml:"started_at,omitempty"`
	// ビルド更新日時
	UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	// ビルド終了日時
	FinishedAt null.Time `boil:"finished_at" json:"finished_at,omitempty" toml:"finished_at" yaml:"finished_at,omitempty"`
	// 再ビルド可能フラグ
	Retriable bool `boil:"retriable" json:"retriable" toml:"retriable" yaml:"retriable"`
	// アプリケーションID
	ApplicationID string `boil:"application_id" json:"application_id" toml:"application_id" yaml:"application_id"`

	R *buildR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L buildL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Build is an object representing the database table.

func FindBuild

func FindBuild(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Build, error)

FindBuild retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Build) AddArtifacts added in v0.10.1

func (o *Build) AddArtifacts(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Artifact) error

AddArtifacts adds the given related objects to the existing relationships of the build, optionally inserting them as new records. Appends related to o.R.Artifacts. Sets related.R.Build appropriately.

func (*Build) Application

func (o *Build) Application(mods ...qm.QueryMod) applicationQuery

Application pointed to by the foreign key.

func (*Build) Artifacts added in v0.10.1

func (o *Build) Artifacts(mods ...qm.QueryMod) artifactQuery

Artifacts retrieves all the artifact's Artifacts with an executor.

func (*Build) Delete

func (o *Build) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Build record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Build) Exists

func (o *Build) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Build row exists.

func (*Build) Insert

func (o *Build) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Build) Reload

func (o *Build) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Build) SetApplication

func (o *Build) SetApplication(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Application) error

SetApplication of the build to the related item. Sets o.R.Application to related. Adds o to related.R.Builds.

func (*Build) Update

func (o *Build) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Build. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Build) Upsert

func (o *Build) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type BuildHook

type BuildHook func(context.Context, boil.ContextExecutor, *Build) error

BuildHook is the signature for custom Build hook methods

type BuildSlice

type BuildSlice []*Build

BuildSlice is an alias for a slice of pointers to Build. This should almost always be used instead of []Build.

func (BuildSlice) DeleteAll

func (o BuildSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*BuildSlice) ReloadAll

func (o *BuildSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (BuildSlice) UpdateAll

func (o BuildSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Environment

type Environment struct {
	ApplicationID string `boil:"application_id" json:"application_id" toml:"application_id" yaml:"application_id"`
	// 環境変数のキー
	Key string `boil:"key" json:"key" toml:"key" yaml:"key"`
	// 環境変数の値
	Value string `boil:"value" json:"value" toml:"value" yaml:"value"`
	// システムによって設定された環境変数かどうか
	System bool `boil:"system" json:"system" toml:"system" yaml:"system"`

	R *environmentR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L environmentL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Environment is an object representing the database table.

func FindEnvironment

func FindEnvironment(ctx context.Context, exec boil.ContextExecutor, applicationID string, key string, selectCols ...string) (*Environment, error)

FindEnvironment retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Environment) Application

func (o *Environment) Application(mods ...qm.QueryMod) applicationQuery

Application pointed to by the foreign key.

func (*Environment) Delete

func (o *Environment) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Environment record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Environment) Exists

func (o *Environment) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Environment row exists.

func (*Environment) Insert

func (o *Environment) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Environment) Reload

func (o *Environment) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Environment) SetApplication

func (o *Environment) SetApplication(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Application) error

SetApplication of the environment to the related item. Sets o.R.Application to related. Adds o to related.R.Environments.

func (*Environment) Update

func (o *Environment) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Environment. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Environment) Upsert

func (o *Environment) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type EnvironmentHook

type EnvironmentHook func(context.Context, boil.ContextExecutor, *Environment) error

EnvironmentHook is the signature for custom Environment hook methods

type EnvironmentSlice

type EnvironmentSlice []*Environment

EnvironmentSlice is an alias for a slice of pointers to Environment. This should almost always be used instead of []Environment.

func (EnvironmentSlice) DeleteAll

func (o EnvironmentSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*EnvironmentSlice) ReloadAll

func (o *EnvironmentSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (EnvironmentSlice) UpdateAll

func (o EnvironmentSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

type PortPublication added in v0.3.0

type PortPublication struct {
	ApplicationID string `boil:"application_id" json:"application_id" toml:"application_id" yaml:"application_id"`
	// 公開側ポート
	InternetPort int `boil:"internet_port" json:"internet_port" toml:"internet_port" yaml:"internet_port"`
	// アプリケーション側ポート
	ApplicationPort int `boil:"application_port" json:"application_port" toml:"application_port" yaml:"application_port"`
	// プロトコル
	Protocol string `boil:"protocol" json:"protocol" toml:"protocol" yaml:"protocol"`

	R *portPublicationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L portPublicationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PortPublication is an object representing the database table.

func FindPortPublication added in v0.3.0

func FindPortPublication(ctx context.Context, exec boil.ContextExecutor, internetPort int, protocol string, selectCols ...string) (*PortPublication, error)

FindPortPublication retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*PortPublication) Application added in v0.3.0

func (o *PortPublication) Application(mods ...qm.QueryMod) applicationQuery

Application pointed to by the foreign key.

func (*PortPublication) Delete added in v0.3.0

func (o *PortPublication) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single PortPublication record with an executor. Delete will match against the primary key column to find the record to delete.

func (*PortPublication) Exists added in v0.3.0

func (o *PortPublication) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the PortPublication row exists.

func (*PortPublication) Insert added in v0.3.0

func (o *PortPublication) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*PortPublication) Reload added in v0.3.0

Reload refetches the object from the database using the primary keys with an executor.

func (*PortPublication) SetApplication added in v0.3.0

func (o *PortPublication) SetApplication(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Application) error

SetApplication of the portPublication to the related item. Sets o.R.Application to related. Adds o to related.R.PortPublications.

func (*PortPublication) Update added in v0.3.0

func (o *PortPublication) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the PortPublication. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*PortPublication) Upsert added in v0.3.0

func (o *PortPublication) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type PortPublicationHook added in v0.3.0

type PortPublicationHook func(context.Context, boil.ContextExecutor, *PortPublication) error

PortPublicationHook is the signature for custom PortPublication hook methods

type PortPublicationSlice added in v0.3.0

type PortPublicationSlice []*PortPublication

PortPublicationSlice is an alias for a slice of pointers to PortPublication. This should almost always be used instead of []PortPublication.

func (PortPublicationSlice) DeleteAll added in v0.3.0

DeleteAll deletes all rows in the slice, using an executor.

func (*PortPublicationSlice) ReloadAll added in v0.3.0

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (PortPublicationSlice) UpdateAll added in v0.3.0

func (o PortPublicationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Repository

type Repository struct {
	ID string `boil:"id" json:"id" toml:"id" yaml:"id"`
	// リポジトリ名
	Name string `boil:"name" json:"name" toml:"name" yaml:"name"`
	// Git Remote URL
	URL string `boil:"url" json:"url" toml:"url" yaml:"url"`

	R *repositoryR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L repositoryL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Repository is an object representing the database table.

func FindRepository

func FindRepository(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Repository, error)

FindRepository retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Repository) AddApplications

func (o *Repository) AddApplications(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Application) error

AddApplications adds the given related objects to the existing relationships of the repository, optionally inserting them as new records. Appends related to o.R.Applications. Sets related.R.Repository appropriately.

func (*Repository) AddUsers

func (o *Repository) AddUsers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*User) error

AddUsers adds the given related objects to the existing relationships of the repository, optionally inserting them as new records. Appends related to o.R.Users. Sets related.R.Repositories appropriately.

func (*Repository) Applications

func (o *Repository) Applications(mods ...qm.QueryMod) applicationQuery

Applications retrieves all the application's Applications with an executor.

func (*Repository) Delete

func (o *Repository) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Repository record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Repository) Exists

func (o *Repository) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Repository row exists.

func (*Repository) Insert

func (o *Repository) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Repository) Reload

func (o *Repository) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Repository) RemoveUsers

func (o *Repository) RemoveUsers(ctx context.Context, exec boil.ContextExecutor, related ...*User) error

RemoveUsers relationships from objects passed in. Removes related items from R.Users (uses pointer comparison, removal does not keep order) Sets related.R.Repositories.

func (*Repository) RepositoryAuth

func (o *Repository) RepositoryAuth(mods ...qm.QueryMod) repositoryAuthQuery

RepositoryAuth pointed to by the foreign key.

func (*Repository) SetRepositoryAuth

func (o *Repository) SetRepositoryAuth(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RepositoryAuth) error

SetRepositoryAuth of the repository to the related item. Sets o.R.RepositoryAuth to related. Adds o to related.R.Repository.

func (*Repository) SetUsers

func (o *Repository) SetUsers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*User) error

SetUsers removes all previously related items of the repository replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Repositories's Users accordingly. Replaces o.R.Users with related. Sets related.R.Repositories's Users accordingly.

func (*Repository) Update

func (o *Repository) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Repository. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Repository) Upsert

func (o *Repository) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*Repository) Users

func (o *Repository) Users(mods ...qm.QueryMod) userQuery

Users retrieves all the user's Users with an executor.

type RepositoryAuth

type RepositoryAuth struct {
	RepositoryID string `boil:"repository_id" json:"repository_id" toml:"repository_id" yaml:"repository_id"`
	// 認証方法
	Method string `boil:"method" json:"method" toml:"method" yaml:"method"`
	// (basic)ユーザー名
	Username string `boil:"username" json:"username" toml:"username" yaml:"username"`
	// (basic)パスワード
	Password string `boil:"password" json:"password" toml:"password" yaml:"password"`
	// (ssh)PEM encoded private key
	SSHKey string `boil:"ssh_key" json:"ssh_key" toml:"ssh_key" yaml:"ssh_key"`

	R *repositoryAuthR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L repositoryAuthL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RepositoryAuth is an object representing the database table.

func FindRepositoryAuth

func FindRepositoryAuth(ctx context.Context, exec boil.ContextExecutor, repositoryID string, selectCols ...string) (*RepositoryAuth, error)

FindRepositoryAuth retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*RepositoryAuth) Delete

func (o *RepositoryAuth) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single RepositoryAuth record with an executor. Delete will match against the primary key column to find the record to delete.

func (*RepositoryAuth) Exists

func (o *RepositoryAuth) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the RepositoryAuth row exists.

func (*RepositoryAuth) Insert

func (o *RepositoryAuth) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*RepositoryAuth) Reload

func (o *RepositoryAuth) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*RepositoryAuth) Repository

func (o *RepositoryAuth) Repository(mods ...qm.QueryMod) repositoryQuery

Repository pointed to by the foreign key.

func (*RepositoryAuth) SetRepository

func (o *RepositoryAuth) SetRepository(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Repository) error

SetRepository of the repositoryAuth to the related item. Sets o.R.Repository to related. Adds o to related.R.RepositoryAuth.

func (*RepositoryAuth) Update

func (o *RepositoryAuth) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the RepositoryAuth. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*RepositoryAuth) Upsert

func (o *RepositoryAuth) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type RepositoryAuthHook

type RepositoryAuthHook func(context.Context, boil.ContextExecutor, *RepositoryAuth) error

RepositoryAuthHook is the signature for custom RepositoryAuth hook methods

type RepositoryAuthSlice

type RepositoryAuthSlice []*RepositoryAuth

RepositoryAuthSlice is an alias for a slice of pointers to RepositoryAuth. This should almost always be used instead of []RepositoryAuth.

func (RepositoryAuthSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*RepositoryAuthSlice) ReloadAll

func (o *RepositoryAuthSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (RepositoryAuthSlice) UpdateAll

func (o RepositoryAuthSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type RepositoryHook

type RepositoryHook func(context.Context, boil.ContextExecutor, *Repository) error

RepositoryHook is the signature for custom Repository hook methods

type RepositorySlice

type RepositorySlice []*Repository

RepositorySlice is an alias for a slice of pointers to Repository. This should almost always be used instead of []Repository.

func (RepositorySlice) DeleteAll

func (o RepositorySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*RepositorySlice) ReloadAll

func (o *RepositorySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (RepositorySlice) UpdateAll

func (o RepositorySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type User

type User struct {
	ID string `boil:"id" json:"id" toml:"id" yaml:"id"`
	// ユーザー名
	Name string `boil:"name" json:"name" toml:"name" yaml:"name"`
	// Admin Flag
	Admin bool `boil:"admin" json:"admin" toml:"admin" yaml:"admin"`

	R *userR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L userL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

User is an object representing the database table.

func FindUser

func FindUser(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*User, error)

FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*User) AddApplications

func (o *User) AddApplications(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Application) error

AddApplications adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Applications. Sets related.R.Users appropriately.

func (*User) AddRepositories

func (o *User) AddRepositories(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Repository) error

AddRepositories adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Repositories. Sets related.R.Users appropriately.

func (*User) AddUserKeys

func (o *User) AddUserKeys(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*UserKey) error

AddUserKeys adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.UserKeys. Sets related.R.User appropriately.

func (*User) Applications

func (o *User) Applications(mods ...qm.QueryMod) applicationQuery

Applications retrieves all the application's Applications with an executor.

func (*User) Delete

func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single User record with an executor. Delete will match against the primary key column to find the record to delete.

func (*User) Exists

func (o *User) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the User row exists.

func (*User) Insert

func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*User) Reload

func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*User) RemoveApplications

func (o *User) RemoveApplications(ctx context.Context, exec boil.ContextExecutor, related ...*Application) error

RemoveApplications relationships from objects passed in. Removes related items from R.Applications (uses pointer comparison, removal does not keep order) Sets related.R.Users.

func (*User) RemoveRepositories

func (o *User) RemoveRepositories(ctx context.Context, exec boil.ContextExecutor, related ...*Repository) error

RemoveRepositories relationships from objects passed in. Removes related items from R.Repositories (uses pointer comparison, removal does not keep order) Sets related.R.Users.

func (*User) Repositories

func (o *User) Repositories(mods ...qm.QueryMod) repositoryQuery

Repositories retrieves all the repository's Repositories with an executor.

func (*User) SetApplications

func (o *User) SetApplications(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Application) error

SetApplications removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Users's Applications accordingly. Replaces o.R.Applications with related. Sets related.R.Users's Applications accordingly.

func (*User) SetRepositories

func (o *User) SetRepositories(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Repository) error

SetRepositories removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Users's Repositories accordingly. Replaces o.R.Repositories with related. Sets related.R.Users's Repositories accordingly.

func (*User) Update

func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the User. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*User) Upsert

func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*User) UserKeys

func (o *User) UserKeys(mods ...qm.QueryMod) userKeyQuery

UserKeys retrieves all the user_key's UserKeys with an executor.

type UserHook

type UserHook func(context.Context, boil.ContextExecutor, *User) error

UserHook is the signature for custom User hook methods

type UserKey

type UserKey struct {
	ID string `boil:"id" json:"id" toml:"id" yaml:"id"`
	// ユーザーID
	UserID string `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	// SSH Public Key
	PublicKey string `boil:"public_key" json:"public_key" toml:"public_key" yaml:"public_key"`

	R *userKeyR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L userKeyL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

UserKey is an object representing the database table.

func FindUserKey

func FindUserKey(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*UserKey, error)

FindUserKey retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*UserKey) Delete

func (o *UserKey) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single UserKey record with an executor. Delete will match against the primary key column to find the record to delete.

func (*UserKey) Exists

func (o *UserKey) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the UserKey row exists.

func (*UserKey) Insert

func (o *UserKey) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*UserKey) Reload

func (o *UserKey) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*UserKey) SetUser

func (o *UserKey) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetUser of the userKey to the related item. Sets o.R.User to related. Adds o to related.R.UserKeys.

func (*UserKey) Update

func (o *UserKey) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the UserKey. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*UserKey) Upsert

func (o *UserKey) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*UserKey) User

func (o *UserKey) User(mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

type UserKeyHook

type UserKeyHook func(context.Context, boil.ContextExecutor, *UserKey) error

UserKeyHook is the signature for custom UserKey hook methods

type UserKeySlice

type UserKeySlice []*UserKey

UserKeySlice is an alias for a slice of pointers to UserKey. This should almost always be used instead of []UserKey.

func (UserKeySlice) DeleteAll

func (o UserKeySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*UserKeySlice) ReloadAll

func (o *UserKeySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (UserKeySlice) UpdateAll

func (o UserKeySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type UserSlice

type UserSlice []*User

UserSlice is an alias for a slice of pointers to User. This should almost always be used instead of []User.

func (UserSlice) DeleteAll

func (o UserSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*UserSlice) ReloadAll

func (o *UserSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (UserSlice) UpdateAll

func (o UserSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Website

type Website struct {
	ID string `boil:"id" json:"id" toml:"id" yaml:"id"`
	// サイトURLのFQDN
	FQDN string `boil:"fqdn" json:"fqdn" toml:"fqdn" yaml:"fqdn"`
	// サイトPathのPrefix
	PathPrefix string `boil:"path_prefix" json:"path_prefix" toml:"path_prefix" yaml:"path_prefix"`
	// PathのPrefixを落とすかどうか
	StripPrefix bool `boil:"strip_prefix" json:"strip_prefix" toml:"strip_prefix" yaml:"strip_prefix"`
	// httpsの接続かどうか
	HTTPS bool `boil:"https" json:"https" toml:"https" yaml:"https"`
	// (advanced)プロキシとアプリの通信にh2c protocolを使うかどうか
	H2C bool `boil:"h2c" json:"h2c" toml:"h2c" yaml:"h2c"`
	// (runtime only)コンテナhttpポート番号
	HTTPPort int `boil:"http_port" json:"http_port" toml:"http_port" yaml:"http_port"`
	// traP部員認証タイプ
	Authentication string `boil:"authentication" json:"authentication" toml:"authentication" yaml:"authentication"`
	// アプリケーションID
	ApplicationID string `boil:"application_id" json:"application_id" toml:"application_id" yaml:"application_id"`

	R *websiteR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L websiteL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Website is an object representing the database table.

func FindWebsite

func FindWebsite(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Website, error)

FindWebsite retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Website) Application

func (o *Website) Application(mods ...qm.QueryMod) applicationQuery

Application pointed to by the foreign key.

func (*Website) Delete

func (o *Website) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Website record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Website) Exists

func (o *Website) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Website row exists.

func (*Website) Insert

func (o *Website) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Website) Reload

func (o *Website) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Website) SetApplication

func (o *Website) SetApplication(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Application) error

SetApplication of the website to the related item. Sets o.R.Application to related. Adds o to related.R.Websites.

func (*Website) Update

func (o *Website) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Website. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Website) Upsert

func (o *Website) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type WebsiteHook

type WebsiteHook func(context.Context, boil.ContextExecutor, *Website) error

WebsiteHook is the signature for custom Website hook methods

type WebsiteSlice

type WebsiteSlice []*Website

WebsiteSlice is an alias for a slice of pointers to Website. This should almost always be used instead of []Website.

func (WebsiteSlice) DeleteAll

func (o WebsiteSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*WebsiteSlice) ReloadAll

func (o *WebsiteSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (WebsiteSlice) UpdateAll

func (o WebsiteSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

Jump to

Keyboard shortcuts

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