fitasks

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keypair

type Keypair struct {
	// Name is the name of the keypair
	Name *string
	// AlternateNames a list of alternative names for this certificate
	AlternateNames []string `json:"alternateNames"`
	// AlternateNameTasks is a collection of subtask
	AlternateNameTasks []fi.Task `json:"alternateNameTasks"`
	// Lifecycle is context for a task
	Lifecycle *fi.Lifecycle
	// Signer is the keypair to use to sign, for when we want to use an alternative CA
	Signer *Keypair
	// Subject is the certificate subject
	Subject string `json:"subject"`
	// Type the type of certificate i.e. CA, server, client etc
	Type string `json:"type"`
	// Format stores the api version of kops.Keyset.  We are using this info in order to determine if kops
	// is accessing legacy secrets that do not use keyset.yaml.
	Format string `json:"format"`
}

func (*Keypair) BuildCertificateTemplate

func (e *Keypair) BuildCertificateTemplate() (*x509.Certificate, error)

BuildCertificateTemplate is responsible for constructing a certificate template

func (*Keypair) CheckChanges

func (_ *Keypair) CheckChanges(a, e, changes *Keypair) error

func (*Keypair) CheckExisting

func (e *Keypair) CheckExisting(c *fi.Context) bool

It's important always to check for the existing key, so we don't regenerate keys e.g. on terraform

func (*Keypair) CompareWithID

func (e *Keypair) CompareWithID() *string

func (*Keypair) Find

func (e *Keypair) Find(c *fi.Context) (*Keypair, error)

func (*Keypair) GetLifecycle

func (o *Keypair) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*Keypair) GetName

func (o *Keypair) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*Keypair) Render

func (_ *Keypair) Render(c *fi.Context, a, e, changes *Keypair) error

func (*Keypair) Run

func (e *Keypair) Run(c *fi.Context) error

func (*Keypair) SetLifecycle

func (o *Keypair) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*Keypair) SetName

func (o *Keypair) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*Keypair) String

func (o *Keypair) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*Keypair) UnmarshalJSON

func (o *Keypair) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type ManagedFile

type ManagedFile struct {
	Name      *string
	Lifecycle *fi.Lifecycle

	Location *string
	Contents *fi.ResourceHolder
}

func (*ManagedFile) CheckChanges

func (s *ManagedFile) CheckChanges(a, e, changes *ManagedFile) error

func (*ManagedFile) Find

func (e *ManagedFile) Find(c *fi.Context) (*ManagedFile, error)

func (*ManagedFile) GetLifecycle

func (o *ManagedFile) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*ManagedFile) GetName

func (o *ManagedFile) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*ManagedFile) Render

func (_ *ManagedFile) Render(c *fi.Context, a, e, changes *ManagedFile) error

func (*ManagedFile) Run

func (e *ManagedFile) Run(c *fi.Context) error

func (*ManagedFile) SetLifecycle

func (o *ManagedFile) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*ManagedFile) SetName

func (o *ManagedFile) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*ManagedFile) String

func (o *ManagedFile) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*ManagedFile) UnmarshalJSON

func (o *ManagedFile) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type MirrorKeystore

type MirrorKeystore struct {
	Name      *string
	Lifecycle *fi.Lifecycle

	MirrorPath vfs.Path
}

func (*MirrorKeystore) CheckChanges

func (s *MirrorKeystore) CheckChanges(a, e, changes *MirrorKeystore) error

CheckChanges implements fi.Task::CheckChanges

func (*MirrorKeystore) Find

func (e *MirrorKeystore) Find(c *fi.Context) (*MirrorKeystore, error)

Find implements fi.Task::Find

func (*MirrorKeystore) GetDependencies

func (e *MirrorKeystore) GetDependencies(tasks map[string]fi.Task) []fi.Task

GetDependencies returns the dependencies for a MirrorKeystore task - it must run after all secrets have been run

func (*MirrorKeystore) GetLifecycle

func (o *MirrorKeystore) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*MirrorKeystore) GetName

func (o *MirrorKeystore) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*MirrorKeystore) Render

func (_ *MirrorKeystore) Render(c *fi.Context, a, e, changes *MirrorKeystore) error

Render implements fi.Task::Render

func (*MirrorKeystore) Run

func (e *MirrorKeystore) Run(c *fi.Context) error

Run implements fi.Task::Run

func (*MirrorKeystore) SetLifecycle

func (o *MirrorKeystore) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*MirrorKeystore) SetName

func (o *MirrorKeystore) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*MirrorKeystore) String

func (o *MirrorKeystore) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*MirrorKeystore) UnmarshalJSON

func (o *MirrorKeystore) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type MirrorSecrets

type MirrorSecrets struct {
	Name      *string
	Lifecycle *fi.Lifecycle

	MirrorPath vfs.Path
}

func (*MirrorSecrets) CheckChanges

func (s *MirrorSecrets) CheckChanges(a, e, changes *MirrorSecrets) error

CheckChanges implements fi.Task::CheckChanges

func (*MirrorSecrets) Find

func (e *MirrorSecrets) Find(c *fi.Context) (*MirrorSecrets, error)

Find implements fi.Task::Find

func (*MirrorSecrets) GetDependencies

func (e *MirrorSecrets) GetDependencies(tasks map[string]fi.Task) []fi.Task

GetDependencies returns the dependencies for a MirrorSecrets task - it must run after all secrets have been run

func (*MirrorSecrets) GetLifecycle

func (o *MirrorSecrets) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*MirrorSecrets) GetName

func (o *MirrorSecrets) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*MirrorSecrets) Render

func (_ *MirrorSecrets) Render(c *fi.Context, a, e, changes *MirrorSecrets) error

Render implements fi.Task::Render

func (*MirrorSecrets) Run

func (e *MirrorSecrets) Run(c *fi.Context) error

Run implements fi.Task::Run

func (*MirrorSecrets) SetLifecycle

func (o *MirrorSecrets) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*MirrorSecrets) SetName

func (o *MirrorSecrets) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*MirrorSecrets) String

func (o *MirrorSecrets) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*MirrorSecrets) UnmarshalJSON

func (o *MirrorSecrets) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type Secret

type Secret struct {
	Name      *string
	Lifecycle *fi.Lifecycle
}

func (*Secret) CheckChanges

func (s *Secret) CheckChanges(a, e, changes *Secret) error

func (*Secret) CheckExisting

func (e *Secret) CheckExisting(c *fi.Context) bool

It's important always to check for the existing Secret, so we don't regenerate tokens e.g. on terraform

func (*Secret) Find

func (e *Secret) Find(c *fi.Context) (*Secret, error)

func (*Secret) GetLifecycle

func (o *Secret) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*Secret) GetName

func (o *Secret) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*Secret) Render

func (_ *Secret) Render(c *fi.Context, a, e, changes *Secret) error

func (*Secret) Run

func (e *Secret) Run(c *fi.Context) error

func (*Secret) SetLifecycle

func (o *Secret) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*Secret) SetName

func (o *Secret) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*Secret) String

func (o *Secret) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*Secret) UnmarshalJSON

func (o *Secret) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

Jump to

Keyboard shortcuts

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