client

package module
v0.1.0 Latest Latest
Warning

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

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

README

client-go-client

A client-go implementation of the Manifestival Client.

Usage

import (
    mfc "github.com/manifestival/client-go-client"
    mf  "github.com/manifestival/manifestival"
    "k8s.io/client-go/rest"
)

func main() {
    var config *rest.Config = ...
    
    manifest, err := mfc.NewManifest("dir/", config, mf.Recursive)
    if err != nil {
        panic("Failed to load manifest")
    }
    
    manifest.ApplyAll()
}

The NewManifest function in this library delegates to the function of the same name in the manifestival package after constructing a manifestival.Client implementation from the *rest.Config.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(config *rest.Config) (mf.Client, error)

func NewManifest

func NewManifest(pathname string, config *rest.Config, opts ...mf.Option) (mf.Manifest, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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